aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-10-30 13:56:23 -0400
committerbobzel <zzzman@gmail.com>2020-10-30 13:56:23 -0400
commitf109ba9dc96948211bb2a0a6fe28bf8f236f16a6 (patch)
tree047f245d23c01ef436410a6e1abfab5e5311c367 /src
parente65c32301dc99268a4f0746581ef70fef0077a0a (diff)
fixed crash on pres trails when closing propertiesBox
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/PresBox.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/PresBox.tsx b/src/client/views/nodes/PresBox.tsx
index 3c40b61f3..f98f9840a 100644
--- a/src/client/views/nodes/PresBox.tsx
+++ b/src/client/views/nodes/PresBox.tsx
@@ -482,7 +482,8 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps, PresBoxSchema>
//stops the presentaton.
resetPresentation = () => {
this.rootDoc._itemIndex = 0;
- for (const doc of this.childDocs) Cast(doc.presentationTargetDoc, Doc, null).opacity = 1;
+ this.childDocs.map(doc => Cast(doc.presentationTargetDoc, Doc, null)).filter(doc => doc).forEach(doc => doc.opacity = 1);
+ ///for (const doc of this.childDocs) Cast(doc.presentationTargetDoc, Doc, null).opacity = 1;
}
@action togglePath = (srcContext: Doc, off?: boolean) => {