fix: include literal
This commit is contained in:
parent
4a0305cb39
commit
7ab4b41d0f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user