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); }} />