diff --git a/packages/entity/src/behavior-components/expression.jsx b/packages/entity/src/behavior-components/expression.jsx index eb41578..05c32b4 100644 --- a/packages/entity/src/behavior-components/expression.jsx +++ b/packages/entity/src/behavior-components/expression.jsx @@ -304,14 +304,9 @@ const Expression = ({ ); } } - let realType; - if (isKey(lastOp)) { - realType = description.args - ? 'function' - : description.type; - } - if (isInvocation(lastOp)) { - realType = description.type; + let realType = description.type; + if (isKey(lastOp) && description.args) { + realType = 'function'; } if (expressionValue) { realType = 'undefined' === description.type ? 'undefined' : 'void';