From 7f247b446bf6b9bdd34f5c4a251f7f1b031c26bf Mon Sep 17 00:00:00 2001 From: ARCHITECT Date: Sat, 17 Jan 2026 22:23:52 +0000 Subject: [PATCH] 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 --- deck-frontend/deck-v4.6.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/deck-frontend/deck-v4.6.html b/deck-frontend/deck-v4.6.html index 48aecb9..97c8260 100644 --- a/deck-frontend/deck-v4.6.html +++ b/deck-frontend/deck-v4.6.html @@ -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"); },