refactor: remove unused Electron API check and update search space ID handling in document upload

This commit is contained in:
Anish Sarkar 2026-04-03 02:56:24 +05:30
parent e0b35cfbab
commit 530db10539
7 changed files with 100 additions and 101 deletions

View file

@ -277,8 +277,6 @@ export function DocumentsSidebar({
[createFolderParentId, searchSpaceId, setExpandedFolderMap]
);
const isElectron = typeof window !== "undefined" && !!window.electronAPI;
const handleRescanFolder = useCallback(
async (folder: FolderDisplay) => {
const api = window.electronAPI;