fix(editor): Fix typing $ in inline expression field reloading node parameters form (#6374)

* fix(editor): Fix typing `$` in inline expression field reloading node parameters form
*  Setting resource mapper empty field values to empty strings
This commit is contained in:
Milorad FIlipović
2023-06-03 17:58:09 +02:00
committed by GitHub
parent f61b776bea
commit 4c0d4ebd99
5 changed files with 22 additions and 11 deletions

View File

@@ -456,9 +456,15 @@ export default defineComponent({
this.$emit('input', { ...this.value, __regex: mode.extractValue.regex });
}
},
dependentParametersValues() {
dependentParametersValues(currentValue, oldValue) {
const isUpdated = oldValue !== null && currentValue !== null && oldValue !== currentValue;
// Reset value if dependent parameters change
if (this.value && isResourceLocatorValue(this.value) && this.value.value !== '') {
if (
isUpdated &&
this.value &&
isResourceLocatorValue(this.value) &&
this.value.value !== ''
) {
this.$emit('input', {
...this.value,
cachedResultName: '',