mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 16:15:42 -06:00
QueryGroup: Fix infinite loop in edit mode (#67273)
This commit is contained in:
parent
d51e63520c
commit
a62cb96089
@ -99,7 +99,8 @@ export class QueryGroup extends PureComponent<Props, State> {
|
||||
async componentDidUpdate() {
|
||||
const { options } = this.props;
|
||||
|
||||
if (this.state.dataSource && options.dataSource.uid !== this.state.dataSource?.uid) {
|
||||
const currentDS = await getDataSourceSrv().get(options.dataSource);
|
||||
if (this.state.dataSource && currentDS.uid !== this.state.dataSource?.uid) {
|
||||
this.setNewQueriesAndDatasource(options);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user