Correcting bug on crudentity deletion
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user