From d4dcc7639120b0bb475d0b3c6379a8286d31f3c9 Mon Sep 17 00:00:00 2001 From: amentis Date: Thu, 30 May 2024 11:41:07 +0300 Subject: [PATCH] small fix --- .../dmp-contact-prefill-dialog.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmp-frontend/src/app/ui/dmp/dmp-contact-prefill-dialog/dmp-contact-prefill-dialog.component.ts b/dmp-frontend/src/app/ui/dmp/dmp-contact-prefill-dialog/dmp-contact-prefill-dialog.component.ts index 59c00caeb..b90a34cec 100644 --- a/dmp-frontend/src/app/ui/dmp/dmp-contact-prefill-dialog/dmp-contact-prefill-dialog.component.ts +++ b/dmp-frontend/src/app/ui/dmp/dmp-contact-prefill-dialog/dmp-contact-prefill-dialog.component.ts @@ -25,7 +25,7 @@ export class DmpContactPrefillDialogComponent extends BaseComponent { singleAutoCompleteDmpAssociatedUserConfiguration: SingleAutoCompleteConfiguration = { initialItems: (data?: any) => this.userService.queryDmpAssociated(this.userService.buildAutocompleteLookup()).pipe(map(x => x.items)), filterFn: (searchQuery: string, data?: any) => this.userService.queryDmpAssociated(this.userService.buildAutocompleteLookup(searchQuery)).pipe(map(x => x.items)), - getSelectedItem: (selectedItem: any) => this.userService.queryDmpAssociated(this.userService.buildAutocompleteLookup(null, null, [selectedItem])).pipe(map(x => x.items[0])), + getSelectedItem: (selectedItem: any) => this.userService.queryDmpAssociated(this.userService.buildAutocompleteLookup(null, null, [selectedItem.id])).pipe(map(x => x.items[0])), displayFn: (item: DmpAssociatedUser) => item.name, subtitleFn: (item: DmpAssociatedUser) => item.email, titleFn: (item: DmpAssociatedUser) => item.name,