Serialize key as query parameter for map templates

pull/10616/head
Christopher Henn 2018-07-06 09:24:01 -07:00 committed by Chris Henn
parent dddbf8b5fb
commit fb5241bc7a
1 changed files with 3 additions and 4 deletions

View File

@ -40,10 +40,9 @@ export const templateSelectionsFromTemplates = (
return acc
}
return {
...acc,
[tempVar]: selection.value,
}
const value = template.type === 'map' ? selection.key : selection.value
return {...acc, [tempVar]: value}
}, {})
}