From b5aa4f3c96f9604195e30d9a81b06805b62e913e Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 20 Oct 2020 22:43:03 +0200 Subject: opening the footnote if you click on it --- .../frontend/app/views/viewer/sections/viewer.sections.footnotes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'animism-align/frontend/app/views/viewer/sections/viewer.sections.footnotes.js') diff --git a/animism-align/frontend/app/views/viewer/sections/viewer.sections.footnotes.js b/animism-align/frontend/app/views/viewer/sections/viewer.sections.footnotes.js index f8c6cba..fa5142f 100644 --- a/animism-align/frontend/app/views/viewer/sections/viewer.sections.footnotes.js +++ b/animism-align/frontend/app/views/viewer/sections/viewer.sections.footnotes.js @@ -30,7 +30,7 @@ class ViewerSectionsFootnotes extends Component { } scrollToFootnote() { const { currentFootnote } = this.props - const id = currentFootnote.footnote_id - 1 + const id = currentFootnote - 1 const pos = this.state.scrollPositions[id] this.scrollRef.current.scrollTo(0, pos - 5) } -- cgit v1.2.3-70-g09d2