Просмотр исходного кода

fix namespaces not persisting across sidebar tabs

Scott Wey 4 лет назад
Родитель
Сommit
81c46ec144
1 измененных файлов с 3 добавлено и 3 удалено
  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 {