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
|
||||
isOpen={showMarkCompletedDialogue}
|
||||
setIsOpen={setShowMarkCompletedDialogue}
|
||||
projectId={feature.project}
|
||||
featureId={feature.name}
|
||||
onComplete={refetchFeature}
|
||||
<ConditionallyRender
|
||||
condition={Boolean(feature.project)}
|
||||
show={
|
||||
<MarkCompletedDialogue
|
||||
isOpen={showMarkCompletedDialogue}
|
||||
setIsOpen={setShowMarkCompletedDialogue}
|
||||
projectId={feature.project}
|
||||
featureId={feature.name}
|
||||
onComplete={refetchFeature}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
</StyledContainer>
|
||||
);
|
||||
|
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user