From 05641cfb021c822ff12ab0f21ae2c99cb379c328 Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Sat, 13 Sep 2025 20:30:18 -0500 Subject: [PATCH] Remove duplicate websocket notification --- frontend/src/WebSocket.jsx | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/frontend/src/WebSocket.jsx b/frontend/src/WebSocket.jsx index 31bf3ef9..3414a9a2 100644 --- a/frontend/src/WebSocket.jsx +++ b/frontend/src/WebSocket.jsx @@ -608,30 +608,8 @@ export const WebsocketProvider = ({ children }) => { loading: true, }); } else if (data.status === 'completed') { - // Update to completion state - notifications.update({ - id: 'bulk-channel-creation-progress', - title: 'Bulk Channel Creation Complete', - message: `Successfully created ${data.created_count || 'multiple'} channels${data.error_count > 0 ? ` (${data.error_count} errors)` : ''}`, - color: 'green.5', - autoClose: 8000, // Auto-close after completion - withCloseButton: true, // Allow manual close - loading: false, // Remove loading indicator - }); - - // Refresh channels - try { - await API.requeryChannels(); - await useChannelsStore.getState().fetchChannels(); - console.log( - 'Channels refreshed after bulk creation completion' - ); - } catch (error) { - console.error( - 'Error refreshing channels after bulk completion:', - error - ); - } + // Hide the progress notification since channels_created will show success + notifications.hide('bulk-channel-creation-progress'); } else if (data.status === 'failed') { // Update to error state notifications.update({