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();