aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/presentationview/PresElementBox.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-04-09 15:41:44 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-04-09 15:41:44 -0400
commit8bca5882b39c21560c29cb97c2770a7a78384018 (patch)
treed9dc4651a99b31d063ff13ebdb25294508b38e37 /src/client/views/presentationview/PresElementBox.tsx
parent43a6467b2fbeb5adb90c4d6efdde0c137925cda0 (diff)
starting cleanup
Diffstat (limited to 'src/client/views/presentationview/PresElementBox.tsx')
-rw-r--r--src/client/views/presentationview/PresElementBox.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/presentationview/PresElementBox.tsx b/src/client/views/presentationview/PresElementBox.tsx
index 289d3a9a1..8a39a7c06 100644
--- a/src/client/views/presentationview/PresElementBox.tsx
+++ b/src/client/views/presentationview/PresElementBox.tsx
@@ -50,8 +50,8 @@ export class PresElementBox extends DocExtendableComponent<FieldViewProps, PresD
_heightDisposer: IReactionDisposer | undefined;
@computed get indexInPres() { return NumCast(this.presElementDoc?.presentationIndex); }
@computed get presBoxDoc() { return Cast(this.presElementDoc?.presBox, Doc) as Doc; }
- @computed get presElementDoc() { return this.props.Document.rootDocument as Doc; }
- @computed get presLayoutDoc() { return this.props.Document; }
+ @computed get presElementDoc() { return this.rootDoc; }
+ @computed get presLayoutDoc() { return this.layoutDoc; }
@computed get targetDoc() { return this.presElementDoc?.presentationTargetDoc as Doc; }
@computed get currentIndex() { return NumCast(this.presBoxDoc?._itemIndex); }