diff options
author | bobzel <zzzman@gmail.com> | 2022-09-15 13:07:05 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-09-15 13:07:05 -0400 |
commit | f525a98c62fd32993b0927c159ee559fc6550215 (patch) | |
tree | 3844aee1ddc3f1cab26fd18a707e26efd383abe4 | |
parent | 7be2e01b91fa9f9788a794811a75478699b96867 (diff) |
fixed crash in presbox
-rw-r--r-- | src/client/views/nodes/trails/PresBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/trails/PresBox.tsx b/src/client/views/nodes/trails/PresBox.tsx index 048a033ee..6a929ef80 100644 --- a/src/client/views/nodes/trails/PresBox.tsx +++ b/src/client/views/nodes/trails/PresBox.tsx @@ -146,7 +146,7 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps>() { @computed get selectedDoc() { return this.selectedDocumentView?.rootDoc; } - isActiveItemTarget = (layoutDoc: Doc) => this.activeItem.presentationTargetDoc === layoutDoc; + isActiveItemTarget = (layoutDoc: Doc) => this.activeItem?.presentationTargetDoc === layoutDoc; clearSelectedArray = () => this.selectedArray.clear(); addToSelectedArray = (doc: Doc) => this.selectedArray.add(doc); removeFromSelectedArray = (doc: Doc) => this.selectedArray.delete(doc); |