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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flameresttable",
3
- "version": "1.0.104",
3
+ "version": "1.0.105",
4
4
  "main": "./src/plugin.ts",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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
- debugger;
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':