From 693b86e955093a346defeb0e581a53fe5ad11592 Mon Sep 17 00:00:00 2001 From: Yuichi Ohneda Date: Sat, 18 May 2024 00:20:51 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20fix:=20re-fetch=20messages=20whe?= =?UTF-8?q?n=20exporting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/hooks/Conversations/useExportConversation.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/hooks/Conversations/useExportConversation.ts b/client/src/hooks/Conversations/useExportConversation.ts index 5c9750e4d..bb95f3b33 100644 --- a/client/src/hooks/Conversations/useExportConversation.ts +++ b/client/src/hooks/Conversations/useExportConversation.ts @@ -41,6 +41,7 @@ export default function useExportConversation({ const dataTree = buildTree({ messages: data }); return dataTree?.length === 0 ? null : dataTree ?? null; }, + refetchOnMount: true, }, );