From 2abf8a0e8bbf3b9734193c5a432e80d7260ec320 Mon Sep 17 00:00:00 2001 From: Augustin Husson Date: Thu, 8 Nov 2018 16:23:40 +0100 Subject: [PATCH] don't drop the value when it equals to None --- public/app/features/templating/template_srv.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/templating/template_srv.ts b/public/app/features/templating/template_srv.ts index 0db7b8e77e0..485d244e9ae 100644 --- a/public/app/features/templating/template_srv.ts +++ b/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;