Cannot remove item from Array when items added from cookie

I’ve been battling with this issue for a few days now, and I can’t find anyway around it. After changing my complex flows into something super simple to test, it seems like this is certainly a bug.

I have a cookie which contains IDs - These are set as a cookie by another flow, which works fine:
image

I’m then using an On Click, to empty an array, add the ID’s from the cookie, and then remove one of the ID’s from the array.
image


In the remove step, the binding brings back the ID 31. This binding is correct, as it’s used in the step to add the cookies where it works fine. I also have this displayed on the page and it shows “31”.

The ID’s from the cookie get added to the array correctly, as seen here by using {{pinnedprojects.items}} on the page to show the array:
image

This means in the example above the array should only have ID’s 30 and 33 after running, however, as you can see in the above image, taken after clicking, the remove action does nothing and doesn’t remove 31.

Adding the items to array manually, where it does not come from a cookie, means I can remove them correctly and as expected. It only doesn’t work when you add items to the array from the cookie (or I assume, another array).

Furthermore, I have done further testing by using a flow to check if ID 31 is in the array before the remove step, and it always returns false, even though it’s clearly showing as there in {{pinnedprojects.items}} (and the screenshot above shows this too).

Community Page
Last updated: