From ad50cff184862f7d4198e369e3f61e62a0ba64f8 Mon Sep 17 00:00:00 2001 From: x032205 <120525481+x032205@users.noreply.github.com> Date: Fri, 16 May 2025 00:21:30 -0400 Subject: [PATCH] Update frontend/src/pages/secret-manager/SettingsPage/components/SecretSharingSection/SecretSharingSection.tsx Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- .../components/SecretSharingSection/SecretSharingSection.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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,