I made it by adding the current cells’record of the API instead of trying to match two datasets (API and the toggle switcher.)
But how can I set the custom state list on page load with all the records where the toggle switch (or checkbox) is yes? I would like to prefill the custom state with the checkboxes = yes on page load.
In these example, only the two rows should be set into the custom state