mirror of
https://github.com/bendtherules/react-props-change.git
synced 2026-08-18 13:53:28 +00:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user