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