mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 16:27:40 +00:00
fix: resolved dashboardpage latestKey undefined error
This commit is contained in:
@@ -150,7 +150,7 @@ export const useGetProjectSecrets = ({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
return { secrets: sharedSecrets };
|
return { secrets: sharedSecrets };
|
||||||
}, [])
|
}, [decryptFileKey])
|
||||||
});
|
});
|
||||||
|
|
||||||
export const useGetProjectSecretsByKey = ({
|
export const useGetProjectSecretsByKey = ({
|
||||||
@@ -242,7 +242,7 @@ export const useGetProjectSecretsByKey = ({
|
|||||||
});
|
});
|
||||||
|
|
||||||
return { secrets: sharedSecrets, uniqueSecCount: Object.keys(uniqSecKeys).length };
|
return { secrets: sharedSecrets, uniqueSecCount: Object.keys(uniqSecKeys).length };
|
||||||
}, [])
|
}, [decryptFileKey])
|
||||||
});
|
});
|
||||||
|
|
||||||
const fetchEncryptedSecretVersion = async (secretId: string, offset: number, limit: number) => {
|
const fetchEncryptedSecretVersion = async (secretId: string, offset: number, limit: number) => {
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ export const DashboardEnvOverview = () => {
|
|||||||
const { currentWorkspace, isLoading } = useWorkspace();
|
const { currentWorkspace, isLoading } = useWorkspace();
|
||||||
const workspaceId = currentWorkspace?._id as string;
|
const workspaceId = currentWorkspace?._id as string;
|
||||||
const { data: latestFileKey } = useGetUserWsKey(workspaceId);
|
const { data: latestFileKey } = useGetUserWsKey(workspaceId);
|
||||||
|
|
||||||
const [searchFilter, setSearchFilter] = useState('');
|
const [searchFilter, setSearchFilter] = useState('');
|
||||||
const secretPath = router.query?.secretPath as string;
|
const secretPath = router.query?.secretPath as string;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user