Skip to content

Commit

Permalink
fix: use ID in deletion dialog to prevent undefined displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
OlfaBensoussia committed Aug 18, 2023
1 parent 82739c9 commit 36d2727
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 36d2727

Please sign in to comment.