aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionDockingView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-09-10 10:16:59 -0400
committerbobzel <zzzman@gmail.com>2020-09-10 10:16:59 -0400
commit075b626e1eab5d2852d5157c4105e3110e4fe7e4 (patch)
treeca71cbbedf60160f6f031873cf5ef1472b50d981 /src/client/views/collections/CollectionDockingView.tsx
parent5a4dad460f611cb8138faf08796dda4763f4daf4 (diff)
fixed shift-dragging of tabs
Diffstat (limited to 'src/client/views/collections/CollectionDockingView.tsx')
-rw-r--r--src/client/views/collections/CollectionDockingView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx
index c891d2035..bed7e9735 100644
--- a/src/client/views/collections/CollectionDockingView.tsx
+++ b/src/client/views/collections/CollectionDockingView.tsx
@@ -353,7 +353,7 @@ export class CollectionDockingView extends CollectionSubView(doc => doc) {
tabDestroyed = (tab: any) => {
this.tabMap.delete(tab);
- Object.values(tab._disposers).forEach((disposer: any) => disposer?.());
+ tab._disposers && Object.values(tab._disposers).forEach((disposer: any) => disposer?.());
tab.reactComponents?.forEach((ele: any) => ReactDOM.unmountComponentAtNode(ele));
}
tabCreated = (tab: any) => {