Skip to content

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

setHasUnsavedChanges to false when user selects another env and they agree to not save changes

Fernando Villarreal23c740d22534
diff --git a/frontend/src/pages/dashboard/[id].tsx b/frontend/src/pages/dashboard/[id].tsx
index 55472d50f0..fb267e5551 100644
--- a/frontend/src/pages/dashboard/[id].tsx
+++ b/frontend/src/pages/dashboard/[id].tsx
@@ -574,6 +574,8 @@ export default function Dashboard() {
if (snapshotData) setSelectedSnapshotEnv(selectedWorkspaceEnv);
else setSelectedEnv(selectedWorkspaceEnv);
}
+
+ setHasUnsavedChanges(false);
};
return data ? (