From b4ed341183189c0da34b365f44eb74095a6c78d7 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Wed, 27 Nov 2024 08:12:11 +0100 Subject: [PATCH] chore: conditionally access children --- .../FeatureOverview/FeatureLifecycle/FlagExposure.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureLifecycle/FlagExposure.tsx b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureLifecycle/FlagExposure.tsx index 5b53229e52..a67d47bfbb 100644 --- a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureLifecycle/FlagExposure.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureLifecycle/FlagExposure.tsx @@ -41,7 +41,7 @@ export const FlagExposure: FC<{ onUncomplete={refetchFeature} /> - {feature.children.length > 0 ? ( + {feature?.children?.length > 0 ? (