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 eaterOP2y ago
Tin
Tin2y ago
Can you share your properties of that page Is your form state path configured properly
Tin
Tin2y ago
code eater
code eaterOP2y 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
Tin2y 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 eaterOP2y ago
thanks

Did you find this page helpful?