chore: final cleanup

This commit is contained in:
Subarashimo
2025-12-05 18:10:21 +01:00
parent 38328de1bf
commit 7e47dbfd7c
29 changed files with 338 additions and 2168 deletions
+3 -3
View File
@@ -37,10 +37,10 @@ function serializeItems(items) {
*/
export function getSkillCategories() {
const categories = extensionSettings.trackerConfig?.userStats?.skillsSection?.customFields || [];
// Handle both old format (string array) and new format (object array)
// Migration function handles string array → object array conversion on load
return categories
.filter(cat => typeof cat === 'string' || cat.enabled !== false)
.map(cat => typeof cat === 'string' ? cat : cat.name);
.filter(cat => cat.enabled !== false)
.map(cat => cat.name);
}
/**