Răsfoiți Sursa

fix namespaces not persisting across sidebar tabs

Scott Wey 4 ani în urmă
părinte
comite
81c46ec144
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      dashboard/src/main/home/sidebar/Sidebar.tsx

+ 3 - 3
dashboard/src/main/home/sidebar/Sidebar.tsx

@@ -116,7 +116,7 @@ class Sidebar extends Component<PropsType, StateType> {
               let search = `?cluster=${currentCluster.name}&project_id=${currentProject.id}`;
 
               if (pathNamespace) {
-                search.concat(`&namespace=${pathNamespace}`);
+                search = search.concat(`&namespace=${pathNamespace}`);
               }
 
               return {
@@ -136,7 +136,7 @@ class Sidebar extends Component<PropsType, StateType> {
               let search = `?cluster=${currentCluster.name}&project_id=${currentProject.id}`;
 
               if (pathNamespace) {
-                search.concat(`&namespace=${pathNamespace}`);
+                search = search.concat(`&namespace=${pathNamespace}`);
               }
 
               return {
@@ -156,7 +156,7 @@ class Sidebar extends Component<PropsType, StateType> {
               let search = `?cluster=${currentCluster.name}&project_id=${currentProject.id}`;
 
               if (pathNamespace) {
-                search.concat(`&namespace=${pathNamespace}`);
+                search = search.concat(`&namespace=${pathNamespace}`);
               }
 
               return {