diff options
author | bobzel <zzzman@gmail.com> | 2020-10-30 14:00:03 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-10-30 14:00:03 -0400 |
commit | 9ee26207ba532a0885658810a62fd5475e026190 (patch) | |
tree | f7369be86cc057626bdbf574eea5303ec39de820 /src | |
parent | f109ba9dc96948211bb2a0a6fe28bf8f236f16a6 (diff) |
different fix from before?
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/PresBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/PresBox.tsx b/src/client/views/nodes/PresBox.tsx index f98f9840a..c3ddc7e04 100644 --- a/src/client/views/nodes/PresBox.tsx +++ b/src/client/views/nodes/PresBox.tsx @@ -482,7 +482,7 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps, PresBoxSchema> //stops the presentaton. resetPresentation = () => { this.rootDoc._itemIndex = 0; - this.childDocs.map(doc => Cast(doc.presentationTargetDoc, Doc, null)).filter(doc => doc).forEach(doc => doc.opacity = 1); + this.childDocs.map(doc => Cast(doc.presentationTargetDoc, Doc, null)).filter(doc => doc instanceof Doc).forEach(doc => doc.opacity = 1); ///for (const doc of this.childDocs) Cast(doc.presentationTargetDoc, Doc, null).opacity = 1; } |