I’m using the Mapbox Map and adding markers on load. There are a few situations where I want to remove all the markers on a map, like when a filter is added so I can add back the relevant markers, or when moving to a different page etc. It was working fine until a few days ago, but I’ve now been getting this error every time:
I tried editing the action to only run when “Mapbox Map’s visible marker id:count >0” so that it’s not trying to remove all markers when there are no markers on the map, but it didn’t help.
Is it a timing thing that the markers are not initialised by the time the action is run? Or a bug?