Merge pull request #3954 from influxdata/bugfix/annotation-refresh
Bugfix: Annotations not appearing until auto refresh tickpull/10616/head
commit
bffb76033d
|
@ -133,15 +133,14 @@ class DashboardPage extends Component<Props, State> {
|
|||
public async componentDidMount() {
|
||||
const {autoRefresh} = this.props
|
||||
|
||||
if (autoRefresh) {
|
||||
AutoRefresh.poll(autoRefresh)
|
||||
AutoRefresh.subscribe(this.fetchAnnotations)
|
||||
}
|
||||
AutoRefresh.poll(autoRefresh)
|
||||
AutoRefresh.subscribe(this.fetchAnnotations)
|
||||
|
||||
window.addEventListener('resize', this.handleWindowResize, true)
|
||||
|
||||
await this.getDashboard()
|
||||
|
||||
this.fetchAnnotations()
|
||||
this.getDashboardLinks()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue