mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Loki: Fix labels in LabelBrowser being wrongly cached (#64482)
* remove label cache from label browser * fix spelling Co-authored-by: Gareth Dawson <gareth.dawson@grafana.com> --------- Co-authored-by: Gareth Dawson <gareth.dawson@grafana.com>
This commit is contained in:
@@ -33,9 +33,9 @@ export const LabelBrowserModal = (props: Props) => {
|
||||
return;
|
||||
}
|
||||
|
||||
datasource.languageProvider.start().then(() => {
|
||||
datasource.languageProvider.fetchLabels().then((labels) => {
|
||||
setLabelsLoaded(true);
|
||||
setHasLogLabels(datasource.languageProvider.getLabelKeys().length > 0);
|
||||
setHasLogLabels(labels.length > 0);
|
||||
});
|
||||
}, [datasource, isOpen]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user