From 1caed7f2c2c7027e534194c6300e689edba4cc4f Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 19 Mar 2026 21:09:39 +0100 Subject: [PATCH] Check if chatLibrary is indexed before sending message --- src/App.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.jsx b/src/App.jsx index ca86d1c..1e61bc3 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1052,7 +1052,7 @@ async function sendMessage() { let citationSources = [] const contextBlocks = [] - if (chatLibrarySlug) { + if (chatLibrarySlug && chatLibrary?.states?.is_indexed) { try { const resp = await fetch(`${ollamaApiUrl}/libraries/${chatLibrarySlug}/context`, { method: 'POST',