I checked all previous posts about image uploaders but none of them seem to cover this issue.
Context: I am building a classical experience where a user can upload images for a listing, delete some if they want to and upload new ones to their already uploaded list of images.
Current setup:
-
User can click “upload images” which then displays the images in a repeating group and resets the uploader:
-
My workflow is that when the image uploader’s value count IS NOT the custom state’s image lists’ count that it should update the value of the custom state list by either 1) setting the custom state list of images to the image uploader value if count of the customer state is 0, or 2) merge the custom state list of images with the image uploader value if the count of the customer state is > 0.
My workflow:
1.
Problem: Sometimes it works and i add new images to the image uploader and it correctly updates the custom state and displays the new images merged with the old images. BUT sometimes it does not - completely randomly.
Has anyone experienced this before? Or has a better solution?
THANK YOU!