You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrade to v4, SelectInput throw type error: Type '{ name: string; value: number; }[]' is not assignable to type 'RaRecord[]'. Property 'id' is missing in type '{ name: string; value: number; }' but required in type 'RaRecord'.
What you were expecting:
The choices is not limited RaRecord[] type .
What happened instead:
The prop choices of SelectInput is limited to RaRecord[]
Steps to reproduce:
Create an array of non special structure object as choices. But not include id as key for each choices
After upgrade to v4, SelectInput throw type error:
Type '{ name: string; value: number; }[]' is not assignable to type 'RaRecord[]'. Property 'id' is missing in type '{ name: string; value: number; }' but required in type 'RaRecord'.
What you were expecting:
The
choices
is not limitedRaRecord[]
type .What happened instead:
The prop
choices
of SelectInput is limited toRaRecord[]
Steps to reproduce:
id
as key for each choicesRelated code:
Other information:
Environment
The text was updated successfully, but these errors were encountered: