From 47ab920bd118171ddef120e4036a83bbbecd54de Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 26 Mar 2024 14:54:17 +0100 Subject: [PATCH] Fix --- packages/client/src/components/app/forms/AttachmentField.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/app/forms/AttachmentField.svelte b/packages/client/src/components/app/forms/AttachmentField.svelte index 63f6d2b39b..b38d305a7d 100644 --- a/packages/client/src/components/app/forms/AttachmentField.svelte +++ b/packages/client/src/components/app/forms/AttachmentField.svelte @@ -20,7 +20,7 @@ let fieldState let fieldApi - $: isSingle = schema?.type === FieldType.ATTACHMENT_SINGLE + $: isSingle = type === FieldType.ATTACHMENT_SINGLE $: value = isSingle && !Array.isArray(fieldState?.value) ? fieldState?.value