reset stores before loading them

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2021-01-04 14:57:32 +02:00
1 parent 06d41acc26
commit 8ef442d02a
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());