From 475dce70300975a16c421c2732b9c5576b358429 Mon Sep 17 00:00:00 2001 From: Julien Schneider Date: Mon, 6 May 2024 11:52:32 +0200 Subject: [PATCH] fix --- .../src/lib/delete-resource-dialog.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/vre/shared/app-resource-properties/src/lib/delete-resource-dialog.component.ts b/libs/vre/shared/app-resource-properties/src/lib/delete-resource-dialog.component.ts index f8e55e94f3..ad70043fc1 100644 --- a/libs/vre/shared/app-resource-properties/src/lib/delete-resource-dialog.component.ts +++ b/libs/vre/shared/app-resource-properties/src/lib/delete-resource-dialog.component.ts @@ -48,7 +48,7 @@ export class DeleteResourceDialogComponent { const payload = new DeleteResource(); payload.id = this.data.resource.res.id; payload.type = this.data.resource.res.type; - payload.deleteComment = this.comment ?? ''; + payload.deleteComment = this.comment ?? undefined; payload.lastModificationDate = this.data.lastModificationDate; this._dspApiConnection.v2.res.deleteResource(payload).subscribe(response => { this._dialogRef.close(response as DeleteResourceResponse);