🔴 DisciplinesTab: activeAttunement property missing from store
#53
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
File:
src/components/game/tabs/DisciplinesTab.tsx, line 194The
DisciplineStoreStateinterface insrc/lib/game/stores/discipline-slice.tshas noactiveAttunementproperty. It only has:disciplines,activeIds,concurrentLimit,totalXP.Impact:
activeAttunementis alwaysundefined, so the tab highlight/switching logic never matches. The attunement tab bar is non-functional — clicking tabs only logs to console and never switches content.Fix: Either add an
activeAttunementproperty to the store with an action to switch it, or implement tab state locally in the component withuseState.[priority: 5] CRASH/BLOCKER — activeAttunement property missing from store, breaks DisciplinesTab.
Fixed: Replaced store
activeAttunementaccess with localuseState('base')in DisciplinesTab. Tab switching now works viasetActiveAttunement(tab.key)and only the active tab's disciplines are rendered.