fix - not clearing the loading state (#524)

This commit is contained in:
Biki Kalita
2026-01-07 05:00:12 +05:30
committed by GitHub
parent 54fd48506d
commit 4ece615548

View File

@@ -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<string, UrlData>()
newUrlData.delete(url)
onUrlChange(newUrlData)
showErrorToast(
<span className="text-muted-foreground">
{error instanceof Error