fix(editor): Fix mapping to empty expression input (#5367)

🐛 Fix mapping to empty expression input
This commit is contained in:
Iván Ovejero 2023-02-06 10:26:12 +01:00 committed by GitHub
parent 9b628ddc34
commit e4458b48e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -256,7 +256,7 @@ export default mixins(showMessage).extend({
) {
updatedValue = `${prevValue} ${data}`;
} else if (prevValue && ['string', 'json'].includes(this.parameter.type)) {
updatedValue = `=${prevValue} ${data}`;
updatedValue = prevValue === '=' ? `=${data}` : `=${prevValue} ${data}`;
} else {
updatedValue = `=${data}`;
}