Преглед на файлове

don't drop the value when it equals to None

Augustin Husson преди 7 години
родител
ревизия
2abf8a0e8b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      public/app/features/templating/template_srv.ts

+ 1 - 1
public/app/features/templating/template_srv.ts

@@ -28,7 +28,7 @@ export class TemplateSrv {
     const existsOrEmpty = value => value || value === '';
 
     this.index = this.variables.reduce((acc, currentValue) => {
-      if (currentValue.current && !currentValue.current.isNone && existsOrEmpty(currentValue.current.value)) {
+      if (currentValue.current && (currentValue.current.isNone || existsOrEmpty(currentValue.current.value))) {
         acc[currentValue.name] = currentValue;
       }
       return acc;