@ai-table/grid 0.1.21 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1746,8 +1746,8 @@ class SelectCellEditorComponent extends AbstractEditCellEditor {
|
|
1746
1746
|
}
|
1747
1747
|
updateValueFn() {
|
1748
1748
|
const value = (this.isMultiple ? this.modelValue : (this.modelValue && [this.modelValue]) || []);
|
1749
|
-
const originValue = AITableQueries.getFieldValue(this.aiTable, [this.record()._id, this.field()._id]);
|
1750
|
-
if (!value.every((v, i) => v === originValue[i])
|
1749
|
+
const originValue = AITableQueries.getFieldValue(this.aiTable, [this.record()._id, this.field()._id]) || [];
|
1750
|
+
if (value.length !== originValue.length || !value.every((v, i) => v === originValue[i])) {
|
1751
1751
|
this.updateFieldValues.emit([
|
1752
1752
|
{
|
1753
1753
|
value: value,
|