Files
Aegis/frontend
kitos 70b5c833d4
Some checks failed
Aegis CI / lint-and-test (push) Has been cancelled
fix(tests): move showTemplateModal useState before early returns (React #310)
The useState hook was placed after the isLoading/error early returns,
violating the Rules of Hooks. First render hit the early return without
calling the hook; second render (after data loaded) called it, producing
'more hooks than previous render' — React error #310 and a white screen.

Moved const [showTemplateModal] to the state block at the top of the
component, alongside the other useState declarations.
2026-05-29 13:29:17 +02:00
..