diff --git a/dashboard/client/components/item-object-list/item-list-layout.tsx b/dashboard/client/components/item-object-list/item-list-layout.tsx index eb5dac108c..80c1f76d70 100644 --- a/dashboard/client/components/item-object-list/item-list-layout.tsx +++ b/dashboard/client/components/item-object-list/item-list-layout.tsx @@ -117,12 +117,11 @@ export class ItemListLayout extends React.Component { try { await Promise.all(stores.map(store => store.loadAll())); const subscriptions = stores.map(store => store.subscribe()); - + await when(() => this.isUnmounting); subscriptions.forEach(dispose => dispose()); // unsubscribe all } catch(error) { console.log("catched", error) } - await when(() => this.isUnmounting); } componentWillUnmount() {