aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/presentationview
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2020-02-06 09:25:53 -0500
committerbob <bcz@cs.brown.edu>2020-02-06 09:25:53 -0500
commite11d5ccc1974b1d0b9b66ddfe11df00c8fd45ccb (patch)
treeab1bfa670d7d8556ca7a94237fea9566f175baa1 /src/client/views/presentationview
parent714e66d2916971b5b023ba33c20b8794c1d536e2 (diff)
parent829872a08cd70675990b96d7388e886d57283c27 (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/views/presentationview')
-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 ea3acf75c..52773d466 100644
--- a/src/client/views/presentationview/PresElementBox.tsx
+++ b/src/client/views/presentationview/PresElementBox.tsx
@@ -54,7 +54,7 @@ export class PresElementBox extends DocExtendableComponent<FieldViewProps, PresD
@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; }
- @computed get currentIndex() { return NumCast(this.presentationDoc?.selectedDoc); }
+ @computed get currentIndex() { return NumCast(this.presentationDoc?._itemIndex); }
componentDidMount() {
this._heightDisposer = reaction(() => [this.originalLayout.embedOpen, this.originalLayout.collapsedHeight],