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,12 +244,17 @@ const FeatureOverviewMetaData = () => {
/> />
} }
/> />
<MarkCompletedDialogue <ConditionallyRender
isOpen={showMarkCompletedDialogue} condition={Boolean(feature.project)}
setIsOpen={setShowMarkCompletedDialogue} show={
projectId={feature.project} <MarkCompletedDialogue
featureId={feature.name} isOpen={showMarkCompletedDialogue}
onComplete={refetchFeature} setIsOpen={setShowMarkCompletedDialogue}
projectId={feature.project}
featureId={feature.name}
onComplete={refetchFeature}
/>
}
/> />
</StyledContainer> </StyledContainer>
); );

View File

@ -5,5 +5,5 @@ export const useShowDependentFeatures = (project: string) => {
const { dependenciesExist } = useCheckDependenciesExist(project); const { dependenciesExist } = useCheckDependenciesExist(project);
const { isOss } = useUiConfig(); const { isOss } = useUiConfig();
return Boolean(isOss() ? dependenciesExist : true); return Boolean(project) && Boolean(isOss() ? dependenciesExist : true);
}; };