fix: empty tags result as empty list even if folder is good (#304)

This commit is contained in:
Mara-Li 2024-02-20 21:00:36 +01:00 committed by GitHub
parent 2bb2264fa8
commit 4635d5ae66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -161,7 +161,7 @@ const Chat: React.FC<ChatProps> = ({
// 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