Hi, the issue is that you are using $queries.allCs.data[currentIndex].c_name
to get the content of an item, but you should use currentItem
, because as you are filtering data the currentIndex is not matching the ones from the fetched data. You can also rename currentItem
to be more helpful in semantic terms.
1 Like