aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/presentationview/PresElementBox.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-02-04 23:52:40 -0500
committerBob Zeleznik <zzzman@gmail.com>2020-02-04 23:52:40 -0500
commitda92903fb49b2c7d34bb44f11bf72a6cd49b8c0d (patch)
tree1a17f1b3161232498bb6083e9bcf2bb69cce32cf /src/client/views/presentationview/PresElementBox.tsx
parent5ff28653b90dde7b97b757794bc1f4ae5ee0f6c4 (diff)
lots of small fixes to templates, presentations, default templates (icon, slide)
Diffstat (limited to 'src/client/views/presentationview/PresElementBox.tsx')
-rw-r--r--src/client/views/presentationview/PresElementBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/presentationview/PresElementBox.tsx b/src/client/views/presentationview/PresElementBox.tsx
index dcc5247d5..ea3acf75c 100644
--- a/src/client/views/presentationview/PresElementBox.tsx
+++ b/src/client/views/presentationview/PresElementBox.tsx
@@ -50,7 +50,7 @@ export class PresElementBox extends DocExtendableComponent<FieldViewProps, PresD
public static LayoutString(fieldKey: string) { return FieldView.LayoutString(PresElementBox, fieldKey); }
_heightDisposer: IReactionDisposer | undefined;
- @computed get indexInPres() { return this.originalLayout?.presBoxKey ? DocListCast(this.presentationDoc[StrCast(this.originalLayout?.presBoxKey)]).indexOf(this.originalLayout) : 0; }
+ @computed get indexInPres() { return NumCast(this.originalLayout?.presentationIndex); }
@computed get presentationDoc() { return Cast(this.originalLayout?.presBox, Doc) as Doc; }
@computed get originalLayout() { return this.props.Document.expandedTemplate as Doc; }
@computed get targetDoc() { return this.originalLayout?.presentationTargetDoc as Doc; }