diff --git a/src/components/SectionManager/index.js b/src/components/SectionManager/index.js index caf2bf6..949d830 100644 --- a/src/components/SectionManager/index.js +++ b/src/components/SectionManager/index.js @@ -26,7 +26,9 @@ export default class SectionManager extends Component { if (scrollProps.sectionName !== oldScrollProps.sectionName) { this.scrollToSection(scrollProps.sectionName) - } else if (postProps.postNumber !== oldPostProps.postNumber) { + } + + if (postProps.postNumber !== oldPostProps.postNumber) { this.updateSectionBody(postProps.postNumber); } }