diff options
| author | bobzel <zzzman@gmail.com> | 2021-10-07 13:33:37 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-10-07 13:33:37 -0400 |
| commit | ecf6d510b5ab2e91753907adf4aadccacc3ac4fa (patch) | |
| tree | 1377a3c7dda4b64a0d749a1e88e3c45bf39086b9 /src/client/views/nodes/ComparisonBox.tsx | |
| parent | a75298a12c636d688ad1be26f6fe89016dc3ce08 (diff) | |
fixed clicking the contextmenu button on timeline entries. set fitWidth for timeline documents since they sometimesm couldn't be clicked (eg an Image would not necesarily fit the span in the timeline without fitWidth). fixed error on comparison box. fixed having lock show up for annotation documents..
Diffstat (limited to 'src/client/views/nodes/ComparisonBox.tsx')
| -rw-r--r-- | src/client/views/nodes/ComparisonBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/ComparisonBox.tsx b/src/client/views/nodes/ComparisonBox.tsx index 72c7e4f45..15c33c8bf 100644 --- a/src/client/views/nodes/ComparisonBox.tsx +++ b/src/client/views/nodes/ComparisonBox.tsx @@ -89,7 +89,7 @@ export class ComparisonBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatabl }; const displayDoc = (which: string) => { var whichDoc = Cast(this.dataDoc[which], Doc, null); - if (whichDoc.type === DocumentType.MARKER) whichDoc = Cast(whichDoc.annotationOn, Doc, null); + if (whichDoc?.type === DocumentType.MARKER) whichDoc = Cast(whichDoc.annotationOn, Doc, null); return whichDoc ? <> <DocumentView {...OmitKeys(this.props, ["NativeWidth", "NativeHeight"]).omit} isContentActive={returnFalse} |
