From bf90fbc6786e6185100431717f709b2808086095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Fri, 27 May 2016 09:23:08 +0200 Subject: [PATCH] fix(templating): fixed failing templating unit test --- public/app/features/templating/templateValuesSrv.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/app/features/templating/templateValuesSrv.js b/public/app/features/templating/templateValuesSrv.js index b79713ebbb4..be553509be2 100644 --- a/public/app/features/templating/templateValuesSrv.js +++ b/public/app/features/templating/templateValuesSrv.js @@ -105,6 +105,8 @@ function (angular, _, kbn) { return op.text === urlValue || op.value === urlValue; }); + option = option || { text: urlValue, value: urlValue }; + self.updateAutoInterval(variable); return self.setVariableValue(variable, option, true); });