Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkbox input si je passe un tableau options vide #1205

Open
Triki-Ahmed opened this issue Sep 18, 2024 · 0 comments
Open

Checkbox input si je passe un tableau options vide #1205

Triki-Ahmed opened this issue Sep 18, 2024 · 0 comments

Comments

@Triki-Ahmed
Copy link

Issue and Steps to Reproduce

Si je passe un tableau vide d'options , j'ai une erreur ("Cannot read properties of undefined (reading 'id')"

J'ai fouiller un peu , j'ai trouvé ca "id: newOptions[0].id" dans le CheckboxInput , ca doit être ca le problème , c'est vrai que c'est un cas rare de passer un tableau vide pour "options" , mais j'ai un cas pour une recherche et si pas de résultat donc tableau vide et sa crash .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant