React UI: Fix initial setting of past queries (#6226)

Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
Julius Volz 2019-10-26 22:20:52 +02:00 committed by GitHub
parent 9698262b63
commit db76da7603
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,6 +79,8 @@ class PanelList extends Component<any, PanelListState> {
this.setState({panels: panels});
}
}
this.updatePastQueries();
}
isHistoryEnabled = () => JSON.parse(localStorage.getItem('enable-query-history') || 'false') as boolean;