From 1a6aa3317f7f8be8c646e3e5ce4fa0abdda94fa1 Mon Sep 17 00:00:00 2001 From: ewandor Date: Mon, 13 Feb 2023 00:33:55 +0100 Subject: [PATCH] Correcting bug on crudentity deletion --- back/app/contract/{routes.py => routes_draft.py} | 0 front/app/src/common/crud/card/card.component.ts | 1 + 2 files changed, 1 insertion(+) rename back/app/contract/{routes.py => routes_draft.py} (100%) diff --git a/back/app/contract/routes.py b/back/app/contract/routes_draft.py similarity index 100% rename from back/app/contract/routes.py rename to back/app/contract/routes_draft.py diff --git a/front/app/src/common/crud/card/card.component.ts b/front/app/src/common/crud/card/card.component.ts index 1b8b3b09..7f02e3e7 100644 --- a/front/app/src/common/crud/card/card.component.ts +++ b/front/app/src/common/crud/card/card.component.ts @@ -118,6 +118,7 @@ export class CardComponent implements OnInit { onDelete() { this._modelLoading$.next(true); + this.model._id = this.resource_id; this.crudService.delete(this.resource!, this.model).subscribe({ next: (model: any) => { this._modelLoading$.next(false);