Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Do not show an avatar for empty placeholder options

Henriette Dinger5f7ac845a506
diff --git a/frontend/src/app/modules/common/autocomplete/user-autocompleter.component.ts b/frontend/src/app/modules/common/autocomplete/user-autocompleter.component.ts
index 18b2411a72e..2412aba4655 100644
--- a/frontend/src/app/modules/common/autocomplete/user-autocompleter.component.ts
+++ b/frontend/src/app/modules/common/autocomplete/user-autocompleter.component.ts
@@ -52,7 +52,7 @@ import {HalResource} from "core-app/modules/hal/resources/hal-resource";
(focus)="onFocus()"
(change)="onModelChange($event)">
<ng-template ng-option-tmp let-item="item" let-index="index">
- <user-avatar *ngIf="item"
+ <user-avatar *ngIf="item && item.id"
[user]="item"
data-class-list="avatar-mini">
</user-avatar>