diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/SecretSharingSection/SecretSharingSection.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/SecretSharingSection/SecretSharingSection.tsx index 84053eed9..3daa7dad2 100644 --- a/frontend/src/pages/secret-manager/SettingsPage/components/SecretSharingSection/SecretSharingSection.tsx +++ b/frontend/src/pages/secret-manager/SettingsPage/components/SecretSharingSection/SecretSharingSection.tsx @@ -15,7 +15,10 @@ export const SecretSharingSection = () => { setIsLoading(true); try { - if (!currentWorkspace?.id) return; + if (!currentWorkspace?.id) { + setIsLoading(false); + return; + } await updateProject({ projectID: currentWorkspace.id,