diff --git a/src/components/structures/LeftPanel.js b/src/components/structures/LeftPanel.js index ccac053776..21c41125a4 100644 --- a/src/components/structures/LeftPanel.js +++ b/src/components/structures/LeftPanel.js @@ -86,8 +86,10 @@ const LeftPanel = React.createClass({ return false; }, - componentDidUpdate(newProps, newState) { - Analytics.setBreadcrumbs(newState.breadcrumbs); + componentDidUpdate(prevProps, prevState) { + if (prevState.breadcrumbs !== this.state.breadcrumbs) { + Analytics.setBreadcrumbs(this.state.breadcrumbs); + } }, _onBreadcrumbsChanged: function(settingName, roomId, level, valueAtLevel, value) {