From dd79b9bf79bd56cca0c63b707150a47e05930630 Mon Sep 17 00:00:00 2001 From: Weves Date: Sun, 21 May 2023 20:26:53 -0700 Subject: [PATCH] Fix quote loading --- web/src/components/search/SearchSection.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/src/components/search/SearchSection.tsx b/web/src/components/search/SearchSection.tsx index e0eec2ea2..6b3178635 100644 --- a/web/src/components/search/SearchSection.tsx +++ b/web/src/components/search/SearchSection.tsx @@ -105,6 +105,9 @@ const searchRequestStreamed = async ( answer += answerChunk; updateCurrentAnswer(answer); } else if (chunk.answer_finished) { + // set quotes as non-null to signify that the answer is finished and + // we're now looking for quotes + updateQuotes({}); if ( !answer.endsWith(".") && !answer.endsWith("?") &&