diff --git a/web/chat.js b/web/chat.js index 2311029..2400af1 100644 --- a/web/chat.js +++ b/web/chat.js @@ -45,16 +45,19 @@ async function importExcel() { const form = new FormData(); form.append("file", file); - await fetch(`/api/import_excel/${conversationId}`, { + + const r = await fetch(`/api/import_excel/${conversationId}`, { method: "POST", body: form }); + const data = await r.json(); + console.log("Imported sheets:", data.sheets); + await loadHistory(); } - - + async function loadConversations() { const r = await fetch("/api/conversations");