From 42d048741cf485bd2aeb0c7f2e882deb528f836b Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Thu, 17 Oct 2024 18:15:59 -0700 Subject: [PATCH] fix: disable file item click during upload --- .../workspace/Knowledge/Collection/Files.svelte | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib/components/workspace/Knowledge/Collection/Files.svelte b/src/lib/components/workspace/Knowledge/Collection/Files.svelte index 3c063fced..2178eefc0 100644 --- a/src/lib/components/workspace/Knowledge/Collection/Files.svelte +++ b/src/lib/components/workspace/Knowledge/Collection/Files.svelte @@ -23,9 +23,17 @@ loading={file.status === 'uploading'} dismissible on:click={() => { + if (file.status === 'uploading') { + return; + } + dispatch('click', file.id); }} on:dismiss={() => { + if (file.status === 'uploading') { + return; + } + dispatch('delete', file.id); }} />