Skip to content
Snippets Groups Projects
Commit d0501fc2 authored by Lukas Haase's avatar Lukas Haase
Browse files

resolve undefined id for comment component

parent 5cfa6ed4
No related merge requests found
......@@ -53,7 +53,8 @@
</mat-icon>
</button>
<button mat-icon-button
*ngIf="(isCreator || comment.creatorId === user.id) && !comment.favorite && !inAnswerView" (click)="openDeleteCommentDialog()"
*ngIf="(isCreator || (comment.creatorId && user && comment.creatorId === user.id)) && !comment.favorite && !inAnswerView"
(click)="openDeleteCommentDialog()"
tabindex="0" attr.aria-labelledby="comment_delete{{ comment.id }}">
<mat-icon class="not-marked" matTooltip="{{ 'comment-page.delete' | translate }}">delete
</mat-icon>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment