From e0a85d1c3bd828cc2df122287b9c27cc21a43a1e Mon Sep 17 00:00:00 2001 From: Iris Scholten Date: Mon, 18 Jun 2018 16:41:51 -0700 Subject: [PATCH] Fix type error when temp vars have no values --- ui/src/dashboards/utils/tempVars.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/dashboards/utils/tempVars.ts b/ui/src/dashboards/utils/tempVars.ts index d122b8aedd..1bb1544b83 100644 --- a/ui/src/dashboards/utils/tempVars.ts +++ b/ui/src/dashboards/utils/tempVars.ts @@ -32,7 +32,7 @@ export const generateURLQueryParamsFromTempVars = ( const selected = values.find(value => value.selected === true) const strippedTempVar = stripTempVar(tempVar) - urlQueryParams[strippedTempVar] = selected.value + urlQueryParams[strippedTempVar] = _.get(selected, 'value', '') }) return urlQueryParams