From 8b1e51a6575ea3d308b9258b2d54f69d164a5363 Mon Sep 17 00:00:00 2001
From: Chris Short <13677134+devcshort@users.noreply.github.com>
Date: Wed, 31 Jan 2024 14:01:54 -0800
Subject: [PATCH] Trying to fix issue with Brevard resource page crashing.
---
.../organisms/ResourceInformationSection.tsx | 10 +++++-----
.../components/organisms/ResourceOverviewSection.tsx | 8 ++++----
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/packages/client/components/organisms/ResourceInformationSection.tsx b/packages/client/components/organisms/ResourceInformationSection.tsx
index c341eb2d..9497e289 100644
--- a/packages/client/components/organisms/ResourceInformationSection.tsx
+++ b/packages/client/components/organisms/ResourceInformationSection.tsx
@@ -207,7 +207,7 @@ export function ResourceInformationSection(props: Props) {
)}
- {props.applicationProcess && (
+ {props?.applicationProcess && (
@@ -220,7 +220,7 @@ export function ResourceInformationSection(props: Props) {
)}
- {props.requiredDocuments && (
+ {props?.requiredDocuments && (
@@ -233,7 +233,7 @@ export function ResourceInformationSection(props: Props) {
)}
- {props.eligibilities && (
+ {props?.eligibilities && (
@@ -247,7 +247,7 @@ export function ResourceInformationSection(props: Props) {
)}
- {props.fees && (
+ {props?.fees && (
@@ -260,7 +260,7 @@ export function ResourceInformationSection(props: Props) {
)}
- {props.languages instanceof Array && (
+ {props?.languages instanceof Array && (
diff --git a/packages/client/components/organisms/ResourceOverviewSection.tsx b/packages/client/components/organisms/ResourceOverviewSection.tsx
index 8a1bb2df..5b65fc7e 100644
--- a/packages/client/components/organisms/ResourceOverviewSection.tsx
+++ b/packages/client/components/organisms/ResourceOverviewSection.tsx
@@ -103,12 +103,12 @@ export function ResourceOverviewSection(props: Props) {
{props.categories?.map((el: any) => {
return (
- {el.name}
+ {el?.name}
);
})}