|
@@ -86,9 +86,11 @@ class ContextProvider extends Component<PropsType, StateType> {
|
|
|
},
|
|
},
|
|
|
currentProject: null,
|
|
currentProject: null,
|
|
|
setCurrentProject: (currentProject: ProjectType, callback?: any) => {
|
|
setCurrentProject: (currentProject: ProjectType, callback?: any) => {
|
|
|
- pushQueryParams(this.props, { project_id: currentProject.id.toString() });
|
|
|
|
|
if (currentProject) {
|
|
if (currentProject) {
|
|
|
localStorage.setItem("currentProject", currentProject.id.toString());
|
|
localStorage.setItem("currentProject", currentProject.id.toString());
|
|
|
|
|
+ pushQueryParams(this.props, {
|
|
|
|
|
+ project_id: currentProject.id.toString(),
|
|
|
|
|
+ });
|
|
|
} else {
|
|
} else {
|
|
|
localStorage.removeItem("currentProject");
|
|
localStorage.removeItem("currentProject");
|
|
|
}
|
|
}
|