From 8597999f53a7599d9bdeeb70150baec95b2f6dd0 Mon Sep 17 00:00:00 2001 From: bobzel Date: Thu, 28 Jul 2022 10:51:14 -0400 Subject: fixed an issue with tab closing not being serialized correctly causing incorrect state on reload --- src/client/views/collections/CollectionDockingView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx index ed9054107..39e2cc17d 100644 --- a/src/client/views/collections/CollectionDockingView.tsx +++ b/src/client/views/collections/CollectionDockingView.tsx @@ -466,7 +466,7 @@ export class CollectionDockingView extends CollectionSubView() { this.tabMap.delete(tab); tab._disposers && Object.values(tab._disposers).forEach((disposer: any) => disposer?.()); tab.reactComponents?.forEach((ele: any) => ReactDOM.unmountComponentAtNode(ele)); - this.stateChanged(); + setTimeout(this.stateChanged); } }; tabCreated = (tab: any) => { -- cgit v1.2.3-70-g09d2