From 7748256516e01cc13ef6a95700162e739235cfc1 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Wed, 15 May 2024 15:29:38 +0100 Subject: [PATCH] review comments --- .../src/components/grid/cells/AttachmentCell.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend-core/src/components/grid/cells/AttachmentCell.svelte b/packages/frontend-core/src/components/grid/cells/AttachmentCell.svelte index f8f6bd8c11..ea452c86a8 100644 --- a/packages/frontend-core/src/components/grid/cells/AttachmentCell.svelte +++ b/packages/frontend-core/src/components/grid/cells/AttachmentCell.svelte @@ -12,7 +12,7 @@ export let schema export let maximum - const { API, notifications, isCloud } = getContext("grid") + const { API, notifications, props } = getContext("grid") const imageExtensions = ["png", "tiff", "gif", "raw", "jpg", "jpeg"] let isOpen = false @@ -106,7 +106,7 @@ on:change={e => onChange(e.detail)} maximum={maximum || schema.constraints?.length?.maximum} {processFiles} - handleFileTooLarge={isCloud ? handleFileTooLarge : null} + handleFileTooLarge={$props.isCloud ? handleFileTooLarge : null} />