From a834402e1687d63f9d3f436a0925c87620a75b0f Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 25 Sep 2023 12:40:12 +0200 Subject: [PATCH] Fix UX --- .../client/src/components/app/forms/RelationshipField.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/client/src/components/app/forms/RelationshipField.svelte b/packages/client/src/components/app/forms/RelationshipField.svelte index 48476bfbb4..68e0c95b51 100644 --- a/packages/client/src/components/app/forms/RelationshipField.svelte +++ b/packages/client/src/components/app/forms/RelationshipField.svelte @@ -72,10 +72,13 @@ const result = { ...optionsObj, ...(fetchResults || [])?.reduce((accumulator, row) => { - accumulator[row._id] = row + if (!optionsObj[row._id]) { + accumulator[row._id] = row + } return accumulator }, {}), } + return Object.values(result) } $: {