diff options
author | bobzel <zzzman@gmail.com> | 2022-07-28 10:51:14 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-07-28 10:51:14 -0400 |
commit | 8597999f53a7599d9bdeeb70150baec95b2f6dd0 (patch) | |
tree | bf4f35c0c6ba866ec3bea8dd147845ced717a42f | |
parent | f82b0fef26782f6a871da036a6bd9a6670444509 (diff) |
fixed an issue with tab closing not being serialized correctly causing incorrect state on reload
-rw-r--r-- | src/client/views/collections/CollectionDockingView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
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) => { |