diff options
| author | bob <bcz@cs.brown.edu> | 2020-02-06 09:25:53 -0500 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2020-02-06 09:25:53 -0500 |
| commit | e11d5ccc1974b1d0b9b66ddfe11df00c8fd45ccb (patch) | |
| tree | ab1bfa670d7d8556ca7a94237fea9566f175baa1 /src/client/views/presentationview | |
| parent | 714e66d2916971b5b023ba33c20b8794c1d536e2 (diff) | |
| parent | 829872a08cd70675990b96d7388e886d57283c27 (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.tsx | 2 |
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], |
