Skip to content

Commit

Permalink
Build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TomDijkema committed Nov 20, 2024
1 parent a11001a commit fb0e489
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 7 additions & 3 deletions src/components/search/components/SearchResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const SearchResult = (props: Props) => {
</Col>
{(!previewImage || window.innerWidth < 768) &&
<Col xs="auto" lg={{ span: 3 }}

>
<p className="fw-bold fs-5 fs-lg-4 text-end textOverflow">{taxonomicService.taxonomicService['schema:availableLanguage']?.join(' / ').toUpperCase()}</p>
</Col>
Expand All @@ -97,7 +97,9 @@ const SearchResult = (props: Props) => {
</Col>
{(!previewImage || window.innerWidth < 768) &&
<Col xs="auto" lg="auto">
<p className="fs-5 fs-lg-4 fw-bold">{format(taxonomicService.taxonomicService['schema:dateCreated'], 'MMMM dd - yyyy')}</p>
<p className="fs-5 fs-lg-4 fw-bold">{taxonomicService.taxonomicService['schema:dateCreated'] &&
format(taxonomicService.taxonomicService['schema:dateCreated'], 'MMMM dd - yyyy')}
</p>
</Col>
}
</Row>
Expand All @@ -123,7 +125,9 @@ const SearchResult = (props: Props) => {
{/* Publishing Date */}
<Row>
<Col className="d-flex justify-content-end">
<p className="tc-white fw-bold fs-4">{format(taxonomicService.taxonomicService['schema:dateCreated'], 'MMMM dd - yyyy')}</p>
<p className="tc-white fw-bold fs-4">{taxonomicService.taxonomicService['schema:dateCreated'] &&
format(taxonomicService.taxonomicService['schema:dateCreated'], 'MMMM dd - yyyy')
}</p>
</Col>
</Row>
</Col>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ const DescriptionBlock = (props: Props) => {
className="mt-2 mt-lg-0"
>
<p className="fs-5 fw-bold">Publishing date</p>
<p>{format(taxonomicService.taxonomicService['schema:dateCreated'], 'MMMM dd - yyyy')}</p>
<p>{taxonomicService.taxonomicService['schema:dateCreated'] &&
format(taxonomicService.taxonomicService['schema:dateCreated'], 'MMMM dd - yyyy')}
</p>
</Col>
{/* Quality score */}
<Col xs={{ span: 12 }} lg={{ span: 3 }}
Expand Down

0 comments on commit fb0e489

Please sign in to comment.