From d9433a7a96e1b71c686e29826f89d54604b8fd0d Mon Sep 17 00:00:00 2001 From: Elijah Date: Sat, 23 May 2026 17:56:33 -0700 Subject: [PATCH] fix(frontend): optional chaining for abortController --- frontend/src/components/FileExplorer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/FileExplorer.tsx b/frontend/src/components/FileExplorer.tsx index 7ae16a8..2f4e537 100644 --- a/frontend/src/components/FileExplorer.tsx +++ b/frontend/src/components/FileExplorer.tsx @@ -938,10 +938,10 @@ export default function FileExplorer({ onLogout }: FileExplorerProps) { const uploadPath = path ? (destPath === '.' ? path : `${destPath}/${path}`) : destPath; try { - if (newBatch.abortController.signal.aborted) throw new Error('Upload canceled'); + if (newBatch.abortController?.signal?.aborted) throw new Error('Upload canceled'); await api.upload(file, uploadPath, { overwrite, - signal: newBatch.abortController.signal, + signal: newBatch.abortController?.signal, onProgress: (percent) => { fileProgressMap.set(file.name + path, (percent / 100) * file.size); updateProgress();