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