diff options
author | bobzel <zzzman@gmail.com> | 2020-10-30 14:04:42 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-10-30 14:04:42 -0400 |
commit | 5667bb53b3f3fa1325df6f92d9f8f11f33d6beac (patch) | |
tree | e4077c5b4585ebffa4550b58229ae4b2faf6ed12 /src | |
parent | 9ee26207ba532a0885658810a62fd5475e026190 (diff) |
from last
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/PresBox.tsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/client/views/nodes/PresBox.tsx b/src/client/views/nodes/PresBox.tsx index c3ddc7e04..85b2dc874 100644 --- a/src/client/views/nodes/PresBox.tsx +++ b/src/client/views/nodes/PresBox.tsx @@ -482,7 +482,13 @@ 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 instanceof Doc).forEach(doc => doc.opacity = 1); + this.childDocs.map(doc => Cast(doc.presentationTargetDoc, Doc, null)).filter(doc => doc instanceof Doc).forEach(doc => { + try { + doc.opacity = 1; + } catch (e) { + console.log("REset presentation error: ", e); + } + }); ///for (const doc of this.childDocs) Cast(doc.presentationTargetDoc, Doc, null).opacity = 1; } |