From e0c2a6d95ec1382632846a1acad6c6d20da18ae2 Mon Sep 17 00:00:00 2001 From: sdess09 <37374498+sdess09@users.noreply.github.com> Date: Thu, 28 Sep 2023 10:59:54 -0400 Subject: [PATCH] Switch back from session to local (#3675) --- dashboard/src/shared/Context.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/src/shared/Context.tsx b/dashboard/src/shared/Context.tsx index 30d746d896..adb3ec35e0 100644 --- a/dashboard/src/shared/Context.tsx +++ b/dashboard/src/shared/Context.tsx @@ -116,12 +116,12 @@ class ContextProvider extends Component { currentProject: null, setCurrentProject: (currentProject: ProjectType, callback?: any) => { if (currentProject) { - sessionStorage.setItem("currentProject", currentProject.id.toString()); + localStorage.setItem("currentProject", currentProject.id.toString()); pushQueryParams(this.props, { project_id: currentProject.id.toString(), }); } else { - sessionStorage.removeItem("currentProject"); + localStorage.removeItem("currentProject"); } this.setState({ currentProject }, () => { callback && callback();