From 7ab4b41d0febc9e69a1e74b949d0acf31a73dcea Mon Sep 17 00:00:00 2001 From: cha0s Date: Sun, 3 Jan 2021 19:35:39 -0600 Subject: [PATCH] fix: include literal --- packages/behavior/src/builders.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/behavior/src/builders.js b/packages/behavior/src/builders.js index 8e4e1d0..c5e470b 100644 --- a/packages/behavior/src/builders.js +++ b/packages/behavior/src/builders.js @@ -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; }