mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
fix: auto refresh interval won't be updated (#17112)
* fix: auto refresh interval won't be updated * leave only cirtical changes
This commit is contained in:
parent
824e62bd1f
commit
35cbcc4643
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user