diff options
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.js | 2 |
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) } |
