Custom resource page component data error.

I create a custom page for a simple resource.Inside the
.blade
of the page I added the line
{{ $this->form }}

then inside the page component i implemented the
getFormSchema()
method which has a radio and few text Inputs where one of the text inputs' visibility depends on the value of the radio as below
Wizard::make([
                Wizard\Step::make('Personal information')
                ->description('Provide additional information about you.')
                    ->schema([
                        Fieldset::make()->schema([
                            Radio::make('type')->options(['agent' => 'Agent', 'manager' => 'Manager'])->required()->reactive(),
                            TextInput::make('commision')->visible(fn (Callable $get) => $get('type') == 'agent' ? true : false),
    
                        ]),
                    ]),

.The error i'm getting when i try to go the next step of the wizard is
Unable to set component data. Public property [$type] not found on component: [app.manager.resources.biodata-resource.pages.bioform]

. I'm not sure how to go about this error.
Was this page helpful?