From 4ece6155482ed78fd319816c58afc5d2360ee2fc Mon Sep 17 00:00:00 2001 From: Biki Kalita <86558912+Biki-dev@users.noreply.github.com> Date: Wed, 7 Jan 2026 05:00:12 +0530 Subject: [PATCH] fix - not clearing the loading state (#524) --- components/chat-input.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/chat-input.tsx b/components/chat-input.tsx index 7ba67a0..7524da5 100644 --- a/components/chat-input.tsx +++ b/components/chat-input.tsx @@ -347,6 +347,12 @@ export function ChatInput({ setShowUrlDialog(false) } catch (error) { + // Remove the URL from the data map on error + const newUrlData = urlData + ? new Map(urlData) + : new Map() + newUrlData.delete(url) + onUrlChange(newUrlData) showErrorToast( {error instanceof Error