From 979d2503c2c0eb37b2c0b9d8839aff775561820e Mon Sep 17 00:00:00 2001 From: Milorad Filipovic Date: Mon, 14 Nov 2022 16:27:20 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Keep=20the=20expression=20string=20?= =?UTF-8?q?when=20switching=20to=20`Fixed`=20parameter=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/editor-ui/src/components/ParameterInput.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/editor-ui/src/components/ParameterInput.vue b/packages/editor-ui/src/components/ParameterInput.vue index 439ca9fc5a463..8877a2ccdede7 100644 --- a/packages/editor-ui/src/components/ParameterInput.vue +++ b/packages/editor-ui/src/components/ParameterInput.vue @@ -1013,7 +1013,14 @@ export default mixins( if (this.isResourceLocatorParameter && isResourceLocatorValue(this.value)) { this.valueChanged({ __rl: true, value, mode: this.value.mode }); } else { - this.valueChanged(typeof value !== 'undefined' ? value : null); + let newValue = typeof value !== 'undefined' ? value : null; + + if (this.parameter.type === 'string') { + // Strip the '=' from the beginning + newValue = this.value ? this.value.toString().substring(1) : null; + } + + this.valueChanged(newValue); } } else if (command === 'refreshOptions') { if (this.isResourceLocatorParameter) {