diff --git a/src/renderer/src/stories/Table.js b/src/renderer/src/stories/Table.js index 2b2928052..daf320ea9 100644 --- a/src/renderer/src/stories/Table.js +++ b/src/renderer/src/stories/Table.js @@ -116,12 +116,8 @@ export class Table extends LitElement { if (col === this.keyColumn) { if (hasRow) value = row; else return undefined; - } else - value = - (hasRow ? this.data[row][col] : undefined) ?? - this.template[col] ?? - // this.schema.properties[col].default ?? - ""; + } else value = (hasRow ? this.data[row][col] : undefined) ?? this.template[col]; + return value; }); } diff --git a/src/renderer/src/stories/hot.js b/src/renderer/src/stories/hot.js index 23333d186..83a077862 100644 --- a/src/renderer/src/stories/hot.js +++ b/src/renderer/src/stories/hot.js @@ -86,12 +86,13 @@ class ArrayEditor extends Handsontable.editors.TextEditor { .split(",") .map((str) => str.trim()) .filter((str) => str); + return this.cellProperties.uniqueItems ? Array.from(new Set(split)) : split; // Only unique values } } setValue(newValue) { - if (Array.isArray(newValue)) return newValue.join(","); + if (Array.isArray(newValue)) newValue = newValue.join(","); super.setValue(newValue); } }