diff --git a/frontend/src/hooks/api/secrets/queries.tsx b/frontend/src/hooks/api/secrets/queries.tsx index 89137b03c..39ac39b5e 100644 --- a/frontend/src/hooks/api/secrets/queries.tsx +++ b/frontend/src/hooks/api/secrets/queries.tsx @@ -150,7 +150,7 @@ export const useGetProjectSecrets = ({ } }); return { secrets: sharedSecrets }; - }, []) + }, [decryptFileKey]) }); export const useGetProjectSecretsByKey = ({ @@ -242,7 +242,7 @@ export const useGetProjectSecretsByKey = ({ }); return { secrets: sharedSecrets, uniqueSecCount: Object.keys(uniqSecKeys).length }; - }, []) + }, [decryptFileKey]) }); const fetchEncryptedSecretVersion = async (secretId: string, offset: number, limit: number) => { diff --git a/frontend/src/views/DashboardPage/DashboardEnvOverview.tsx b/frontend/src/views/DashboardPage/DashboardEnvOverview.tsx index 0ac6a5651..033f7f1e2 100644 --- a/frontend/src/views/DashboardPage/DashboardEnvOverview.tsx +++ b/frontend/src/views/DashboardPage/DashboardEnvOverview.tsx @@ -24,7 +24,6 @@ export const DashboardEnvOverview = () => { const { currentWorkspace, isLoading } = useWorkspace(); const workspaceId = currentWorkspace?._id as string; const { data: latestFileKey } = useGetUserWsKey(workspaceId); - const [searchFilter, setSearchFilter] = useState(''); const secretPath = router.query?.secretPath as string;