diff options
author | bobzel <zzzman@gmail.com> | 2023-09-14 10:24:37 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-09-14 10:24:37 -0400 |
commit | 5d95b29c49d46474839c3c221517143b63bc257b (patch) | |
tree | 82f488af008ae9d3cb880f734cfbda7d48215df2 /src/client/views/MainView.tsx | |
parent | b6d021af3968c4f066bc0644a74e195226e6e6f1 (diff) |
fixed exception
Diffstat (limited to 'src/client/views/MainView.tsx')
-rw-r--r-- | src/client/views/MainView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx index 78f6038f9..957ff4fb5 100644 --- a/src/client/views/MainView.tsx +++ b/src/client/views/MainView.tsx @@ -913,7 +913,7 @@ export class MainView extends React.Component { } @computed get snapLines() { SnappingManager.GetIsDragging(); - const dragged = DragManager.docsBeingDragged[0]; + const dragged = DragManager.docsBeingDragged.lastElement(); const dragPar = dragged ? DocumentManager.Instance.getDocumentView(dragged)?.props.CollectionFreeFormDocumentView?.().props.CollectionFreeFormView : undefined; return !dragPar?.rootDoc.freeform_snapLines ? null : ( <div className="mainView-snapLines"> |