feat(editor): Append expressions in fixed values when mapping to string/json inputs (#5300)

feat(editor): Append expressions in fixed values when mapping
This commit is contained in:
Mutasem Aldmour 2023-01-31 16:26:19 +03:00 committed by GitHub
parent b61453d8e6
commit 88c7ef29c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -255,6 +255,8 @@ export default mixins(showMessage).extend({
prevValue.length > 1
) {
updatedValue = `${prevValue} ${data}`;
} else if (prevValue && ['string', 'json'].includes(this.parameter.type)) {
updatedValue = `=${prevValue} ${data}`;
} else {
updatedValue = `=${data}`;
}