From c9602a40ef86b10114360c533b6491cfe6f57271 Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 6 Dec 2020 15:54:59 +0100 Subject: [PATCH] Fix contact selection --- src/app/components/table/table.component.ts | 1 - .../contact-information/contact-information.component.ts | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/components/table/table.component.ts b/src/app/components/table/table.component.ts index 7da38a1..e11d938 100644 --- a/src/app/components/table/table.component.ts +++ b/src/app/components/table/table.component.ts @@ -357,7 +357,6 @@ export class TableComponent implements AfterViewInit { }, }); dialogRef.afterClosed().subscribe((selectedObject) => { - console.log(selectedObject); if (selectedObject) { row[column.propertyNameOfReferenceId] = selectedObject.id; const newObjectFlattened = flatten(selectedObject); diff --git a/src/app/pages/tables/contact-information/contact-information.component.ts b/src/app/pages/tables/contact-information/contact-information.component.ts index 7a62474..4372d4a 100644 --- a/src/app/pages/tables/contact-information/contact-information.component.ts +++ b/src/app/pages/tables/contact-information/contact-information.component.ts @@ -27,8 +27,8 @@ export class ContactInformationComponent implements OnInit { possibleObjects: [], nameToShowInSelection: (person) => person.firstName + ' ' + person.name, propertyPrefixToOverwrite: 'person', - currentlySelectedObjectId: (timeFrame) => { - return timeFrame['cargoBike.id']; + currentlySelectedObjectId: (contactInformation) => { + return contactInformation['person.id']; }, propertyNameOfReferenceId: 'personId', },