mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-13 16:14:07 -08:00
fix(editor): Fix mapping to empty expression input (#5367)
🐛 Fix mapping to empty expression input
This commit is contained in:
parent
9b628ddc34
commit
e4458b48e0
|
@ -256,7 +256,7 @@ export default mixins(showMessage).extend({
|
||||||
) {
|
) {
|
||||||
updatedValue = `${prevValue} ${data}`;
|
updatedValue = `${prevValue} ${data}`;
|
||||||
} else if (prevValue && ['string', 'json'].includes(this.parameter.type)) {
|
} else if (prevValue && ['string', 'json'].includes(this.parameter.type)) {
|
||||||
updatedValue = `=${prevValue} ${data}`;
|
updatedValue = prevValue === '=' ? `=${data}` : `=${prevValue} ${data}`;
|
||||||
} else {
|
} else {
|
||||||
updatedValue = `=${data}`;
|
updatedValue = `=${data}`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue