Fix trainer wizard crash on step 6 — skip validate() when rules are empty
Livewire's validate([]) falls back to looking for a $rules property on
the component. Steps 6 and 7 intentionally have no validation rules, so
only call validate() when the rules array is non-empty.
Co-Authored-By:
Claude Opus 4.6 <noreply@anthropic.com>
Showing
Please register or sign in to comment