diff options
author | bobzel <zzzman@gmail.com> | 2025-01-02 10:14:39 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2025-01-02 10:14:39 -0500 |
commit | 4270a0c74ffdfab64cd8d259ce76773a68a7f422 (patch) | |
tree | 068c807369b0b45d531fe348e0fee4cfc730b57b | |
parent | 119b22ba59e886c2d59bc7ed5fa2551edf922df8 (diff) |
fixed react warning for goldenlayout unmounting.
-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 3e8138390..539b49c86 100644 --- a/src/client/views/collections/CollectionDockingView.tsx +++ b/src/client/views/collections/CollectionDockingView.tsx @@ -382,7 +382,7 @@ export class CollectionDockingView extends CollectionSubView() { } catch { /* empty */ } - this._goldenLayout?.destroy(); + setTimeout(() => this._goldenLayout?.destroy()); window.removeEventListener('resize', this.onResize); window.removeEventListener('mouseup', this.onPointerUp); |