From 4715e9ba06c204a7c30234f0b019bcb57ed8e0ca Mon Sep 17 00:00:00 2001 From: ShadiestGoat <48590492+ShadiestGoat@users.noreply.github.com> Date: Tue, 6 May 2025 21:54:41 +0100 Subject: [PATCH] Fix empty (null) tags --- src/managers/RuleManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/managers/RuleManager.ts b/src/managers/RuleManager.ts index 219b347..69f751d 100644 --- a/src/managers/RuleManager.ts +++ b/src/managers/RuleManager.ts @@ -522,7 +522,7 @@ export default class RuleManager { const propTags = metadata?.frontmatter?.tags ?? []; const inlineTags = metadata?.tags?.map(tag => tag.tag.replace('#', '')) ?? []; for (const tag of [...propTags, ...inlineTags]) { - if (!source.includes(tag)) source.push(tag); + if (!source.includes(tag) && tag) source.push(tag); } break; }