Inconsistent behavior in a filtered datagrid when updating a variable

A very strange case here, which I cannot figure out. When updating a variable on a filtered datagrid, the first two items in the filtered list behave as expected, but not subsequent items. Everything works fine when the datagrid is unfiltered.

Help! Thanks. :slightly_smiling_face:

@Joyce any thoughts please?

Hi @Dorian :wave:

My guess is the issue comes from the item.index

It works for the first two items because those are the first two objects even when you don’t filter your data but the third and fourth objects when you filter your data are not the third and fourth objects in your variables.

Does that make sense?

If not, let me know. I’ll try to recreate your use case on my side and record a short video for you.

Thanks @Joyce that was it. I used to co-pilot to create some JS to update the correct item in the variable.