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:24:00 +00:00
parent 76d15a9de6
commit d52a7f77c8

View File

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