Fix getCategory to use current base instead of ref prefix

Tags are categorized by the base they belong to, not by their
ref prefix. A tag in the hst table is always a hashtag, regardless
of whether its ref starts with "flg", "ply", etc.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
ARCHITECT
2026-01-17 22:23:52 +00:00
parent 2e8c1867b2
commit 7f247b446b

View File

@@ -878,10 +878,7 @@ const Utils = {
},
getCategory(tag) {
const ref = (tag.ref || "").toLowerCase();
for (const cat of Object.keys(CONFIG.CATEGORIES)) {
if (ref.startsWith(cat)) return cat;
}
// Category is determined by the current base being viewed
return State.get("base");
},