From 716c97d5cc27f780d7a88cd338068be3aec73c60 Mon Sep 17 00:00:00 2001 From: khansadaoudi Date: Wed, 27 Nov 2024 11:27:11 +0100 Subject: [PATCH] fix: #415 --- src/components/sentence/AttributeTable.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/sentence/AttributeTable.vue b/src/components/sentence/AttributeTable.vue index 0cc79cbe..bddd18ba 100644 --- a/src/components/sentence/AttributeTable.vue +++ b/src/components/sentence/AttributeTable.vue @@ -35,7 +35,7 @@ :options-sanitize="true" @input-value="onInput()" /> - + @@ -61,7 +61,7 @@ /> x.name === row.a)[0] || {}).values; }, + computeValue(row: any) { + if (this.computeValueOptions(row).length === 1) { + row.v = this.computeValueOptions(row)[0]; + } + }, computeValueType(row: any) { const possibleValue = (this.featPossibleOptions.filter((x) => x.name === row.a)[0] || {}).values; if (possibleValue && possibleValue instanceof Array) return possibleValue;