flameresttable 1.0.104 → 1.0.105
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.
- package/package.json +1 -1
- package/src/Table/FlameTable.ts +4 -3
package/package.json
CHANGED
package/src/Table/FlameTable.ts
CHANGED
|
@@ -444,8 +444,10 @@ export default class FlameTable<T> {
|
|
|
444
444
|
|
|
445
445
|
if (res.data) {
|
|
446
446
|
const findedIdx = this.Rows.rows.findIndex((row: any) => row[indexKey] === (res.data as any)[indexKey])
|
|
447
|
-
if (findedIdx !== -1)
|
|
447
|
+
if (findedIdx !== -1) {
|
|
448
448
|
this.Rows.rows[findedIdx] = reactive(res.data as any);
|
|
449
|
+
this.RowsParams[columns[indexKey]].previousAttributes = res.data;
|
|
450
|
+
}
|
|
449
451
|
}
|
|
450
452
|
|
|
451
453
|
return res;
|
|
@@ -468,8 +470,7 @@ export default class FlameTable<T> {
|
|
|
468
470
|
case 'file':
|
|
469
471
|
case 'image':
|
|
470
472
|
// Неизменный объект будет как простой объект, а не событие, File итд
|
|
471
|
-
|
|
472
|
-
if (row[key] === null || isPlainObject(row[key])) continue;
|
|
473
|
+
if (row[key] === null || typeof row[key]?.[0]?.['id'] === 'string' && typeof row[key]?.[0]?.['file'] === 'string' || isPlainObject(row[key])) continue;
|
|
473
474
|
break;
|
|
474
475
|
case 'text':
|
|
475
476
|
case 'string':
|