Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Update DeleteProjectSection.tsx

varonix0ecf94c9d82f3
diff --git a/frontend/src/pages/project/SettingsPage/components/DeleteProjectSection/DeleteProjectSection.tsx b/frontend/src/pages/project/SettingsPage/components/DeleteProjectSection/DeleteProjectSection.tsx
index cbe8d92b22..77dcb4030e 100644
--- a/frontend/src/pages/project/SettingsPage/components/DeleteProjectSection/DeleteProjectSection.tsx
+++ b/frontend/src/pages/project/SettingsPage/components/DeleteProjectSection/DeleteProjectSection.tsx
@@ -55,6 +55,8 @@ export const DeleteProjectSection = () => {
const handleLeaveWorkspaceSubmit = async () => {
try {
+ if (!currentProject) return;
+
setIsLeaving.on();
await leaveProject.mutateAsync({