Fixed issue with DataService's delete method that used wrong uuid to make the request

This commit is contained in:
Giuseppe Digilio
2020-02-27 11:15:31 +01:00
parent a6f1a6d1ec
commit 500f5c645f
11 changed files with 34 additions and 27 deletions

View File

@@ -312,7 +312,7 @@ export class ItemDeleteComponent
)
),
).subscribe((types) => {
this.itemDataService.delete(this.item, types).pipe(first()).subscribe(
this.itemDataService.delete(this.item.id, types).pipe(first()).subscribe(
(succeeded: boolean) => {
this.notify(succeeded);
}
@@ -322,7 +322,7 @@ export class ItemDeleteComponent
/**
* When the item is successfully delete, navigate to the homepage, otherwise navigate back to the item edit page
* @param response
* @param succeeded
*/
notify(succeeded: boolean) {
if (succeeded) {