mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 23:13:04 +00:00
Fixed issue with DataService's delete method that used wrong uuid to make the request
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user