feat: allow conditions in buildValue
This commit is contained in:
parent
de88478016
commit
121f783d7e
|
@ -26,7 +26,13 @@ export function buildInvoke (path, args = []) {
|
|||
}
|
||||
|
||||
export function buildValue(value) {
|
||||
if ('object' === typeof value && 'traversal' === value.type) {
|
||||
if (
|
||||
'object' === typeof value
|
||||
&& (
|
||||
'traversal' === value.type
|
||||
|| 'condition' === value.type
|
||||
)
|
||||
) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue
Block a user