From 84ba840dbcfea6e059c3872999f6ac716783eee5 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Fri, 27 Oct 2023 17:29:05 +0100 Subject: [PATCH] Apply valid file type change to AttachmentField in cloud only. --- .../client/src/components/app/forms/AttachmentField.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/client/src/components/app/forms/AttachmentField.svelte b/packages/client/src/components/app/forms/AttachmentField.svelte index 2effe607ae..e57510c770 100644 --- a/packages/client/src/components/app/forms/AttachmentField.svelte +++ b/packages/client/src/components/app/forms/AttachmentField.svelte @@ -3,13 +3,16 @@ import { CoreDropzone } from "@budibase/bbui" import { getContext } from "svelte" import { ValidFileExtensions } from "@budibase/shared-core" + import { environmentStore } from "../../../stores/index.js" export let field export let label export let disabled = false export let compact = false export let validation - export let extensions = ValidFileExtensions.map(ext => `.${ext}`).join(", ") + export let extensions = $environmentStore.cloud + ? ValidFileExtensions.map(ext => `.${ext}`).join(", ") + : "*" export let onChange export let maximum = undefined