From bac9fc98dd77e85d3f098c3285bda568d417a692 Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Thu, 24 Nov 2022 14:48:58 +0200 Subject: [PATCH] Fixed order of stats tab, unhid sneaky folders --- .../ui/creature/character/characterSheetTabs/StatsTab.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/imports/client/ui/creature/character/characterSheetTabs/StatsTab.vue b/app/imports/client/ui/creature/character/characterSheetTabs/StatsTab.vue index b5254836..751b4326 100644 --- a/app/imports/client/ui/creature/character/characterSheetTabs/StatsTab.vue +++ b/app/imports/client/ui/creature/character/characterSheetTabs/StatsTab.vue @@ -428,7 +428,7 @@ const propertyHandlers = { let skipChildren; let propPath = null; if (prop.hideStatsGroup) { - return { skipChildren: true} + skipChildren = true; } if (prop.tab === 'stats') { propPath = ['folder', prop.location] @@ -546,7 +546,7 @@ export default { if (creature.settings.hideUnusedStats) { filter.hide = { $ne: true }; } - const allProps = CreatureProperties.find(filter, { sort: { order: 1 } }); + const allProps = CreatureProperties.find(filter, { sort: { order: -1 } }); const forest = nodeArrayToTree(allProps); const properties = { folder: {}, attribute: {}, skill: {} }; walkDown(forest, node => {