From 4635d5ae66625c5a67b6104c174f8d37176ae93b Mon Sep 17 00:00:00 2001 From: Mara-Li Date: Tue, 20 Feb 2024 21:00:36 +0100 Subject: [PATCH] fix: empty tags result as empty list even if folder is good (#304) --- src/components/Chat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Chat.tsx b/src/components/Chat.tsx index b6e8640b..34d2ce8b 100644 --- a/src/components/Chat.tsx +++ b/src/components/Chat.tsx @@ -161,7 +161,7 @@ const Chat: React.FC = ({ // Recursively get all note TFiles in the path noteFiles = await getNotesFromPath(vault, settings.chatNoteContextPath); } - if (settings.chatNoteContextTags) { + if (settings.chatNoteContextTags.length > 0) { //prevent overriding chatNoteContextPath if not tags are used // Get all notes with the specified tags // If path is provided, get all notes with the specified tags in the path // If path is not provided, get all notes with the specified tags