feat: allow conditions in buildValue

This commit is contained in:
cha0s 2019-05-28 16:50:56 -05:00
parent de88478016
commit 121f783d7e

View File

@ -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 {