diff --git a/src/client/types/expression.type-renderer.jsx b/src/client/types/expression.type-renderer.jsx index 1caea51..757f2a5 100644 --- a/src/client/types/expression.type-renderer.jsx +++ b/src/client/types/expression.type-renderer.jsx @@ -69,8 +69,10 @@ const Expression = (props) => { }, event); return; } - const opsDescription = descriptionFromOps(context, finalOps); - const {defaultLiteral} = opsDescription; + const { + defaultLiteral, + type: descriptionType, + } = descriptionFromOps(context, finalOps); onChange({ ...value, ops: finalOps, @@ -81,7 +83,7 @@ const Expression = (props) => { } : { type: 'expression', - ops: defaultOps(context, opsDescription.type), + ops: defaultOps(context, descriptionType), }, }, event); }} @@ -163,7 +165,7 @@ const Expression = (props) => { }, event) )} options={opsDescription.options} - type={opsDescription.type} + type={opsDescription.type.split('|').filter((part) => 'property' !== part).join('|')} value={assign} />