Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fixed infinite loading in dashboard
Animesh Das3e0d4cb70a03
diff --git a/frontend/src/pages/dashboard/[id].tsx b/frontend/src/pages/dashboard/[id].tsxindex d0dda02402..740a763afc 100644--- a/frontend/src/pages/dashboard/[id].tsx+++ b/frontend/src/pages/dashboard/[id].tsx@@ -188,6 +188,9 @@ export default function Dashboard() {useEffect(() => {(async () => {+ if(router.isReady && workspaceId === "undefined"){+ router.push('/noprojects');+ }try {const tempNumSnapshots = await getProjectSercetSnapshotsCount({workspaceIddiff --git a/frontend/src/views/Settings/ProjectSettingsPage/ProjectSettingsPage.tsx b/frontend/src/views/Settings/ProjectSettingsPage/ProjectSettingsPage.tsxindex aadabf088f..17acaff335 100644--- a/frontend/src/views/Settings/ProjectSettingsPage/ProjectSettingsPage.tsx+++ b/frontend/src/views/Settings/ProjectSettingsPage/ProjectSettingsPage.tsx@@ -123,6 +123,9 @@ export const ProjectSettingsPage = () => {await deleteWorkspace.mutateAsync({ workspaceID });// redirect user to first workspace user is part ofconst ws = workspaces.find(({ _id }) => _id !== workspaceID);+ if(!ws){+ router.push("/noprojects");+ }router.push(`/dashboard/${ws?._id}`);createNotification({text: 'Successfully deleted workspace',