Skip to content

Commit

Permalink
fix: auto refresh interval won't be updated (#17112)
Browse files Browse the repository at this point in the history
* fix: auto refresh interval won't be updated

* leave only cirtical changes
  • Loading branch information
yougyoung94 authored Oct 22, 2021
1 parent 824e62b commit 35cbcc4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions superset-frontend/src/dashboard/components/Header/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,13 @@ class Header extends React.PureComponent {
}
}

componentDidUpdate(prevProps) {
if (this.props.refreshFrequency !== prevProps.refreshFrequency) {
const { refreshFrequency } = this.props;
this.startPeriodicRender(refreshFrequency * 1000);
}
}

UNSAFE_componentWillReceiveProps(nextProps) {
const { user } = this.props;
if (
Expand Down

0 comments on commit 35cbcc4

Please sign in to comment.