Revert "Show wrong code - Props check using if else"

This reverts commit 6b37eee232. It is present in different branch batch-if-else
This commit is contained in:
2018-12-26 11:38:23 +05:30
parent 6b37eee232
commit 4d167decf2
+3 -1
View File
@@ -26,7 +26,9 @@ export default class SectionManager extends Component {
if (scrollProps.sectionName !== oldScrollProps.sectionName) { if (scrollProps.sectionName !== oldScrollProps.sectionName) {
this.scrollToSection(scrollProps.sectionName) this.scrollToSection(scrollProps.sectionName)
} else if (postProps.postNumber !== oldPostProps.postNumber) { }
if (postProps.postNumber !== oldPostProps.postNumber) {
this.updateSectionBody(postProps.postNumber); this.updateSectionBody(postProps.postNumber);
} }
} }