From a87145b5ef954aa8663992a02c63eb0b5dd86bfd Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Fri, 9 Dec 2022 09:29:44 +0100 Subject: [PATCH] Fix strategy screen 404 (#2638) --- .../FeatureStrategyCreate/FeatureStrategyCreate.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyCreate/FeatureStrategyCreate.tsx b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyCreate/FeatureStrategyCreate.tsx index b6fac67c90..5a990294a2 100644 --- a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyCreate/FeatureStrategyCreate.tsx +++ b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyCreate/FeatureStrategyCreate.tsx @@ -128,7 +128,9 @@ export const FeatureStrategyCreate = () => { } }; - if (!data) return null; + const emptyFeature = !data || !data.project; + + if (emptyFeature) return null; return (