mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 18:30:41 -06:00
Chore: Start language provider only once in prometheus variable editor (#79763)
Start language provider only once
This commit is contained in:
parent
07025d91ec
commit
094cfdd8dd
@ -61,7 +61,8 @@ export const PromVariableQueryEditor = ({ onChange, query, datasource, range }:
|
||||
|
||||
useEffect(() => {
|
||||
datasource.languageProvider.start(range);
|
||||
}, [datasource.languageProvider, range]);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (!query) {
|
||||
|
Loading…
Reference in New Issue
Block a user