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:
parent
8897f2ea75
commit
ce67c4d944
@ -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>
|
||||||
);
|
);
|
||||||
|
@ -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);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user