fix: include literal

This commit is contained in:
cha0s 2021-01-03 19:35:39 -06:00
parent 4a0305cb39
commit 7ab4b41d0f

View File

@ -1,11 +1,12 @@
export function buildValue(value) {
if (
'object' === typeof value
&& (
'expression' === value.type
|| 'expressions' === value.type
|| 'condition' === value.type
)
&& -1 !== [
'condition',
'expression',
'expressions',
'literal',
].indexOf(value.type)
) {
return value;
}