summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/sections/viewer.sections.footnotes.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-10-20 22:43:03 +0200
committerJules Laplace <julescarbon@gmail.com>2020-10-20 22:43:03 +0200
commitb5aa4f3c96f9604195e30d9a81b06805b62e913e (patch)
tree77f3ec4b8d263b60fb73dd1991ab4be93a8c0ca8 /animism-align/frontend/app/views/viewer/sections/viewer.sections.footnotes.js
parent6b36bb44d5933eed584e1657d402bc1fa07ff611 (diff)
opening the footnote if you click on it
Diffstat (limited to 'animism-align/frontend/app/views/viewer/sections/viewer.sections.footnotes.js')
-rw-r--r--animism-align/frontend/app/views/viewer/sections/viewer.sections.footnotes.js2
1 files changed, 1 insertions, 1 deletions
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)
}