1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-05 17:53:12 +02:00

fix: no requests before project loaded

This commit is contained in:
kwasniew 2024-06-03 12:52:31 +02:00
parent f84be2fd7c
commit 5e2876b3a1
No known key found for this signature in database
GPG Key ID: 43A7CBC24C119560

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