From 23c740d225345489eb9d59f7e08ed185716cb49b Mon Sep 17 00:00:00 2001 From: Fernando Villarreal Date: Mon, 13 Feb 2023 11:07:22 -0600 Subject: [PATCH] setHasUnsavedChanges to false when user selects another env and they agree to not save changes --- frontend/src/pages/dashboard/[id].tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/pages/dashboard/[id].tsx b/frontend/src/pages/dashboard/[id].tsx index 55472d50f..fb267e555 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 ? (