1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00

fix: no requests before project loaded (#7096)

This commit is contained in:
Mateusz Kwasniewski 2024-05-21 15:54:09 +02:00 committed by GitHub
parent 8897f2ea75
commit ce67c4d944
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 7 deletions

View File

@ -244,6 +244,9 @@ const FeatureOverviewMetaData = () => {
/>
}
/>
<ConditionallyRender
condition={Boolean(feature.project)}
show={
<MarkCompletedDialogue
isOpen={showMarkCompletedDialogue}
setIsOpen={setShowMarkCompletedDialogue}
@ -251,6 +254,8 @@ const FeatureOverviewMetaData = () => {
featureId={feature.name}
onComplete={refetchFeature}
/>
}
/>
</StyledContainer>
);
};

View File

@ -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);
};