Reset stores before loading them (#1897)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2021-01-07 07:25:00 +02:00
1 parent 8d2d1aecd5
commit 8823b1913f
1 file changed
+1
@@ -117,6 +117,7 @@ export class ItemListLayout extends React.Component<ItemListLayoutProps> {
if (!isClusterScoped) stores.push(namespaceStore);
try {
stores.map(store => store.reset());
await Promise.all(stores.map(store => store.loadAll()));
const subscriptions = stores.map(store => store.subscribe());