fix: 修复 table 关联字符数组时的异常报错 (#3906)

This commit is contained in:
liaoxuezhi 2022-03-30 20:10:48 +08:00 committed by GitHub
parent f7093678d0
commit 945aa2a3df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -940,6 +940,12 @@ export const TableStore = iRendererStore
// self.expandedRows.clear();
let arr: Array<SRow> = rows.map((item, index) => {
if (!isObject(item)) {
item = {
item
};
}
let id = String(
getEntryId ? getEntryId(item, index) : item.__id ?? guid()
);