Skip to content

Commit

Permalink
Hide fields that don't exist or are empty arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
devcshort committed Apr 4, 2024
1 parent ef6a76c commit 2bc2eeb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export function ResourceInformationSection(props: Props) {
</Grid.Col>
)}

{props.hours && (
{props?.hours && (
<Grid.Col lg={6} md={6} sm={12} xs={12}>
<Group spacing="xs">
<ThemeIcon size="xs" variant="default">
Expand Down Expand Up @@ -260,7 +260,7 @@ export function ResourceInformationSection(props: Props) {
</Grid.Col>
)}

{props?.languages instanceof Array && (
{props?.languages instanceof Array && props?.languages?.length > 0 && (
<Grid.Col lg={6} md={6} sm={12} xs={12}>
<Group spacing="xs">
<ThemeIcon size="xs" variant="default">
Expand Down

0 comments on commit 2bc2eeb

Please sign in to comment.