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

sort between cluster fixed (hopefully)

Sean Rhee 5 лет назад
Родитель
Сommit
18c13f059b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      dashboard/src/main/home/cluster-dashboard/ClusterDashboard.tsx

+ 1 - 1
dashboard/src/main/home/cluster-dashboard/ClusterDashboard.tsx

@@ -34,7 +34,7 @@ export default class ClusterDashboard extends Component<PropsType, StateType> {
     localStorage.setItem("SortType", this.state.sortType);
     // Reset namespace filter and close expanded chart on cluster change
     if (prevProps.currentCluster !== this.props.currentCluster) {
-      this.setState({ namespace: 'default', sortType: 'Newest', currentChart: null });
+      this.setState({ namespace: 'default', sortType: (localStorage.getItem("SortType") ? localStorage.getItem('SortType') : 'Newest'), currentChart: null });
     }
   }