On edit details screen the values are not been set

Livewire Entangle Error: Livewire property 'doctor.department_id' cannot be found in my mount() $this->departmentForm->fill(['doctor' => [ 'department_id' => $this->doctor->department_id ]]);
6 Replies
code eater
code eaterOP16mo ago
Tin
Tin16mo ago
Can you share your properties of that page Is your form state path configured properly
Tin
Tin16mo ago
code eater
code eaterOP16mo ago
wow thanks so ->statePath($this->doctor) is this correct? i don't have a statePath currently using it with livewire not filament panel
Tin
Tin16mo ago
I think statePath('doctor') So I would do public array $doctor =[] in your livewire component and then use state path 'doctor' and remove the doctor.* from inputs
code eater
code eaterOP16mo ago
thanks
Want results from more Discord servers?
Add your server