Serialize key as query parameter for map templates
parent
dddbf8b5fb
commit
fb5241bc7a
|
@ -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}
|
||||
}, {})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue