TagSpaces is an offline, open source, document manager with tagging support
fix: for search in tag description
Ilian Sapundshiev1879606181fc
diff --git a/src/renderer/services/search.ts b/src/renderer/services/search.tsindex d9520b781..bafcefeb0 100644--- a/src/renderer/services/search.ts+++ b/src/renderer/services/search.ts@@ -139,11 +139,19 @@ const fuseOptions = {{name: 'tagsDescription',getFn: (entry) => {- if (!entry.tags) return;let descriptions = '';- for (const tag of entry.tags) {- if (tag.description) {- descriptions += ' ' + String(tag.description);+ if (entry.tags) {+ for (const tag of entry.tags) {+ if (tag.description) {+ descriptions += ' ' + String(tag.description);+ }+ }+ }+ if (entry.meta?.tags) {+ for (const tag of entry.meta.tags) {+ if (tag.description) {+ descriptions += ' ' + String(tag.description);+ }}}return descriptions;