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

Rule et condition, à identifier par id plutot que par index #379

Open
salimkanoun opened this issue Feb 8, 2025 · 0 comments
Open

Rule et condition, à identifier par id plutot que par index #379

salimkanoun opened this issue Feb 8, 2025 · 0 comments
Assignees

Comments

@salimkanoun
Copy link
Contributor

Dans ce que t'a fait, tu identifie les rule et condition par index, c'est sujet à bug car quand tu enleve 1 ligne les index suivant change,

Met plutot une propriété id que tu genere par Math.random() que tu genère quand tu crée la rule / condition, et quand tu a un click sur le remove tu passe le id pour identifier quel item du state tu suprimme etc ...

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

No branches or pull requests

2 participants