Catch and display load errors for WorkloadsOverview (#4393)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-11-22 12:27:54 -05:00
1 parent 0e5fc65806
commit 78a4e2a126
7 files changed
+77 -29

No files matched your search

@@ -67,7 +67,7 @@ export class KubeObjectListLayout<K extends KubeObject> extends React.Component<
const { store, dependentStores = [], subscribeStores } = this.props;
const stores = Array.from(new Set([store, ...dependentStores]));
const reactions: Disposer[] = [
reaction(() => clusterContext.contextNamespaces.length, () => {
reaction(() => clusterContext.contextNamespaces.slice(), () => {
// clear load errors
this.loadErrors.length = 0;
}),