Commit dd87d1c2 authored by PECQUOT's avatar PECQUOT
Browse files

release 0.13.8

[fix] entities-table-datasource.class.ts: delete(-1) will no more fail
parent 6808ab01
{
"name": "@sumaris-net/ngx-components",
"description": "SUMARiS Angular components",
"version": "0.13.7",
"version": "0.13.8",
"author": "contact@e-is.pro",
"license": "AGPL-3.0",
"readmeFilename": "README.md",
......
......@@ -294,7 +294,15 @@ export class EntitiesTableDataSource<
}
delete(id: number): void {
if (id === -1)
return; // new row: no data to delete
const row = this.getRow(id);
if (!row) {
console.error(`[table-datasource] Row to delete with id=${id} not found`);
return;
}
this.$busy.next(true);
this.dataService.deleteAll([row.currentData], this.serviceOptions)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment