Skip to content

Commit

Permalink
Trying to fix issue with Brevard resource page crashing.
Browse files Browse the repository at this point in the history
  • Loading branch information
devcshort committed Jan 31, 2024
1 parent 8de2adc commit 8b1e51a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export function ResourceInformationSection(props: Props) {
</Grid.Col>
)}

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

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

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

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

{props.languages instanceof Array && (
{props?.languages instanceof Array && (
<Grid.Col lg={6} md={6} sm={12} xs={12}>
<Group spacing="xs">
<ThemeIcon size="xs" variant="default">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,20 +103,20 @@ export function ResourceOverviewSection(props: Props) {
{props.categories?.map((el: any) => {
return (
<Badge
key={el.code}
key={el?.code}
component={Link}
href={`/search?query=${encodeURIComponent(
el.code
el?.code
)}&query_label=${encodeURIComponent(
el.name
el?.name
)}&query_type=taxonomy`}
sx={{
textDecoration: 'underline',
cursor: 'pointer',
textTransform: 'initial',
}}
>
{el.name}
{el?.name}
</Badge>
);
})}
Expand Down

0 comments on commit 8b1e51a

Please sign in to comment.