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) { export function buildValue(value) {
if ( if (
'object' === typeof value 'object' === typeof value
&& ( && -1 !== [
'expression' === value.type 'condition',
|| 'expressions' === value.type 'expression',
|| 'condition' === value.type 'expressions',
) 'literal',
].indexOf(value.type)
) { ) {
return value; return value;
} }