From 23942a38935c57a64a906f11f666a77f99d8ed7a Mon Sep 17 00:00:00 2001 From: Miguel Angel Date: Thu, 23 Apr 2026 14:49:11 -0400 Subject: [PATCH 1/2] fix: ensure consistent use of labels in options. --- src/components/inspector/column-setup.vue | 8 ++- src/components/renderer/form-record-list.vue | 74 ++++++++++---------- 2 files changed, 42 insertions(+), 40 deletions(-) diff --git a/src/components/inspector/column-setup.vue b/src/components/inspector/column-setup.vue index 092058fb1..f7aa4f6cb 100644 --- a/src/components/inspector/column-setup.vue +++ b/src/components/inspector/column-setup.vue @@ -473,7 +473,7 @@ export default { this.editIndex = index; this.optionContent = this.optionsList[index][this.valueField]; this.optionValue = this.optionsList[index][this.keyField]; - this.optionContentCollection = this.optionsList[index][this.keyFieldCollection]; + this.optionContentCollection = this.optionsList[index].label || this.optionsList[index][this.keyFieldCollection]; this.optionValueCollection = this.optionsList[index][this.valueField]; this.optionError = ''; }, @@ -535,15 +535,17 @@ export default { this.optionsList.push( { - [this.keyFieldCollection]: this.optionContentCollection, + [this.keyFieldCollection]: this.optionValueCollection, [this.valueField]: this.optionValueCollection, + label: this.optionContentCollection, } ); this.optionsList = this.optionsList.filter(option => option["content"] !== "all"); } else { - this.optionsList[this.editIndex][this.keyFieldCollection] = this.optionContentCollection; + this.optionsList[this.editIndex][this.keyFieldCollection] = this.optionValueCollection; this.optionsList[this.editIndex][this.valueField] = this.optionValueCollection; + this.optionsList[this.editIndex].label = this.optionContentCollection; } this.jsonError = ''; diff --git a/src/components/renderer/form-record-list.vue b/src/components/renderer/form-record-list.vue index 22cf4cdec..9cb0d7072 100644 --- a/src/components/renderer/form-record-list.vue +++ b/src/components/renderer/form-record-list.vue @@ -35,7 +35,7 @@ data-cy="table" :tbody-tr-class="rowClass" > - +