diff --git a/inventory/src/pages/Settings.tsx b/inventory/src/pages/Settings.tsx index 0bd301b..5410901 100644 --- a/inventory/src/pages/Settings.tsx +++ b/inventory/src/pages/Settings.tsx @@ -44,15 +44,6 @@ export function Settings() { }); // Clean up function to reset state - const cleanupState = () => { - if (eventSource) { - eventSource.close(); - setEventSource(null); - } - setIsUpdating(false); - setIsImporting(false); - setProgress(null); - }; const handleCancel = async () => { // Just clean up everything immediately @@ -91,7 +82,7 @@ export function Settings() { // Add event listeners for all SSE events source.onopen = () => {}; - source.onerror = (error) => { + source.onerror = () => { if (source.readyState === EventSource.CLOSED) { source.close(); setEventSource(null); @@ -210,7 +201,7 @@ export function Settings() { // Add event listeners for all SSE events source.onopen = () => {}; - source.onerror = (error) => { + source.onerror = () => { if (source.readyState === EventSource.CLOSED) { source.close(); setEventSource(null);