Correcting bug on crudentity deletion

This commit is contained in:
2023-02-13 00:33:55 +01:00
parent 120e032c99
commit 1a6aa3317f
2 changed files with 1 additions and 0 deletions

View File

@@ -118,6 +118,7 @@ export class CardComponent implements OnInit {
onDelete() { onDelete() {
this._modelLoading$.next(true); this._modelLoading$.next(true);
this.model._id = this.resource_id;
this.crudService.delete(this.resource!, this.model).subscribe({ this.crudService.delete(this.resource!, this.model).subscribe({
next: (model: any) => { next: (model: any) => {
this._modelLoading$.next(false); this._modelLoading$.next(false);