From 36d2727f8ce546bd6d7396f5baebf4d6c6928db3 Mon Sep 17 00:00:00 2001 From: OlfaBensoussia Date: Fri, 18 Aug 2023 04:27:40 +0100 Subject: [PATCH] fix: use ID in deletion dialog to prevent undefined displayed --- .../edc-demo/components/asset-viewer/asset-viewer.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/edc-demo/components/asset-viewer/asset-viewer.component.ts b/src/modules/edc-demo/components/asset-viewer/asset-viewer.component.ts index dfa8e1381..ac38b46fa 100644 --- a/src/modules/edc-demo/components/asset-viewer/asset-viewer.component.ts +++ b/src/modules/edc-demo/components/asset-viewer/asset-viewer.component.ts @@ -51,7 +51,8 @@ export class AssetViewerComponent implements OnInit { } onDelete(asset: Asset) { - const dialogData = ConfirmDialogModel.forDelete("asset", `"${asset.name}"`) + + const dialogData = ConfirmDialogModel.forDelete("asset", `"${asset.id}"`) const ref = this.dialog.open(ConfirmationDialogComponent, {maxWidth: "20%", data: dialogData}); ref.afterClosed().subscribe({