From 4223078a687d37ad74493d076167126414e0da03 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Wed, 24 Feb 2021 19:05:17 +0000 Subject: [PATCH] fix undefined 1:N dropdown selection --- packages/standard-components/src/forms/RelationshipField.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/standard-components/src/forms/RelationshipField.svelte b/packages/standard-components/src/forms/RelationshipField.svelte index f4f5244fd1..587974fb46 100644 --- a/packages/standard-components/src/forms/RelationshipField.svelte +++ b/packages/standard-components/src/forms/RelationshipField.svelte @@ -23,7 +23,7 @@ if (fieldSchema?.relationshipType === "one-to-many") { if (value?.length && options?.length) { const row = options.find(row => row._id === value[0]) - return row.name + return getDisplayName(row) } else { return placeholder || "Choose an option" }