Browse Source

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

David 6 years ago
parent
commit
459769af70
1 changed files with 0 additions and 7 deletions
  1. 0 7
      public/app/plugins/datasource/loki/language_provider.ts

+ 0 - 7
public/app/plugins/datasource/loki/language_provider.ts

@@ -246,13 +246,6 @@ export default class LokiLanguageProvider extends LanguageProvider {
         [EMPTY_SELECTOR]: labelKeys,
         [EMPTY_SELECTOR]: labelKeys,
       };
       };
       this.logLabelOptions = labelKeys.map((key: string) => ({ label: key, value: key, isLeaf: false }));
       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) {
     } catch (e) {
       console.error(e);
       console.error(e);
     }
     }