From ce67c4d944c6800f9246b9f45f5541cc6d081b71 Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Tue, 21 May 2024 15:54:09 +0200 Subject: [PATCH] fix: no requests before project loaded (#7096) --- .../FeatureOverviewMetaData.tsx | 17 +++++++++++------ .../useShowDependentFeatures.ts | 2 +- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewMetaData/FeatureOverviewMetaData.tsx b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewMetaData/FeatureOverviewMetaData.tsx index 7d28eedf19..01a521eb96 100644 --- a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewMetaData/FeatureOverviewMetaData.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewMetaData/FeatureOverviewMetaData.tsx @@ -244,12 +244,17 @@ const FeatureOverviewMetaData = () => { /> } /> - + } /> ); diff --git a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewMetaData/useShowDependentFeatures.ts b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewMetaData/useShowDependentFeatures.ts index 4f0cb7757d..150a3aa38b 100644 --- a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewMetaData/useShowDependentFeatures.ts +++ b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewMetaData/useShowDependentFeatures.ts @@ -5,5 +5,5 @@ export const useShowDependentFeatures = (project: string) => { const { dependenciesExist } = useCheckDependenciesExist(project); const { isOss } = useUiConfig(); - return Boolean(isOss() ? dependenciesExist : true); + return Boolean(project) && Boolean(isOss() ? dependenciesExist : true); };