From 1e14d49de27650b89946129c2bcaacecfdc73e40 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 11 Jul 2026 19:46:58 -0500 Subject: [PATCH] refac --- .../src/lib/components/chat/ChatInput.svelte | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/cptr/frontend/src/lib/components/chat/ChatInput.svelte b/cptr/frontend/src/lib/components/chat/ChatInput.svelte index 23c48f0..b46c675 100644 --- a/cptr/frontend/src/lib/components/chat/ChatInput.svelte +++ b/cptr/frontend/src/lib/components/chat/ChatInput.svelte @@ -160,7 +160,6 @@ } async function processFiles(files: File[]) { - if (!workspace) return; for (const file of files) { const id = Math.random().toString(36).substring(7); const isImage = file.type.startsWith('image/'); @@ -1471,16 +1470,14 @@ onmousedown={(e) => e.stopPropagation()} >
- {#if workspace} - { - if (files) processFiles(Array.from(files)); - }} - oncapture={(file) => { - processFiles([file]); - }} - /> - {/if} + { + if (files) processFiles(Array.from(files)); + }} + oncapture={(file) => { + processFiles([file]); + }} + /> {#if $planMode}