Skip to content

Commit

Permalink
fix: use ID in deletion dialog to prevent undefined displayed (eclips…
Browse files Browse the repository at this point in the history
  • Loading branch information
OlfaBensoussia authored Aug 18, 2023
1 parent dcc2742 commit 366f3b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ 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({
Expand Down

0 comments on commit 366f3b9

Please sign in to comment.