From b7bae77d009ee3ea65edbe6b29cdf0d7e295c45d Mon Sep 17 00:00:00 2001 From: ebb-tide Date: Tue, 3 Jul 2018 14:17:18 -0700 Subject: [PATCH] Retain unselected values when saving map type template variables --- ui/src/dashboards/actions/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/src/dashboards/actions/index.ts b/ui/src/dashboards/actions/index.ts index 49fa24e976..4f8e32ae41 100644 --- a/ui/src/dashboards/actions/index.ts +++ b/ui/src/dashboards/actions/index.ts @@ -341,7 +341,10 @@ const removeUnselectedTemplateValues = ( 'templates', [] ).map(template => { - if (template.type === TempVarsModels.TemplateType.CSV) { + if ( + template.type === TempVarsModels.TemplateType.CSV || + template.type === TempVarsModels.TemplateType.Map + ) { return template }