Commit 459769af by David Committed by GitHub

Loki: Remove prefetching of default label values (#18213)

parent f9a6414b
......@@ -246,13 +246,6 @@ export default class LokiLanguageProvider extends LanguageProvider {
[EMPTY_SELECTOR]: labelKeys,
};
this.logLabelOptions = labelKeys.map((key: string) => ({ label: key, value: key, isLeaf: false }));
// Pre-load values for default labels
return Promise.all(
labelKeys
.filter((key: string) => DEFAULT_KEYS.indexOf(key) > -1)
.map((key: string) => this.fetchLabelValues(key, absoluteRange))
);
} catch (e) {
console.error(e);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment