Chore: Start language provider only once in prometheus variable editor (#79763)

Start language provider only once
This commit is contained in:
ismail simsek 2023-12-21 22:46:16 +01:00 committed by GitHub
parent 07025d91ec
commit 094cfdd8dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {