From 3badb27744788ae5ac7a3e5f78e82e976b594349 Mon Sep 17 00:00:00 2001 From: sabaimran Date: Fri, 8 Nov 2024 23:28:02 -0800 Subject: [PATCH] Remove stored uploaded files after they're processed. --- src/interface/web/app/chat/page.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/interface/web/app/chat/page.tsx b/src/interface/web/app/chat/page.tsx index 1489412f..e069c2e3 100644 --- a/src/interface/web/app/chat/page.tsx +++ b/src/interface/web/app/chat/page.tsx @@ -94,6 +94,7 @@ function ChatBodyData(props: ChatBodyDataProps) { size: file.size, }); } + localStorage.removeItem("uploadedFiles"); props.setUploadedFiles(uploadedFiles); }, [setQueryToProcess, props.setImages, conversationId]);