Skip to content

Commit 513a368

Browse files
Merge pull request #2243 from PrakashDurlabhji/issue_2054_1
issue 2054 fixed
2 parents 0eb1f76 + 0024c60 commit 513a368

File tree

1 file changed

+0
-14
lines changed
  • src/shared/components/Settings/Accordion

1 file changed

+0
-14
lines changed

src/shared/components/Settings/Accordion/index.jsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,6 @@ export default class Accordion extends React.Component {
3838
this.setState({ currentItem: currentSidebarTab });
3939
}
4040

41-
/*
42-
* Sync the state of the Accordion with the state of the Sidebar
43-
*/
44-
componentWillReceiveProps(nextProps) {
45-
const {
46-
hasToggled,
47-
currentItem,
48-
} = this.state;
49-
const { currentSidebarTab } = nextProps;
50-
if (hasToggled && currentItem !== currentSidebarTab) {
51-
this.setState({ currentItem: currentSidebarTab });
52-
}
53-
}
54-
5541
/*
5642
* Returns whether a tab is opened or closed.
5743
*/

0 commit comments

Comments
 (0)