How to prevent tags in TagInput from doubling when reordering items in Repeater

I have a TagInput inside a Repeater that gets auto populated based on existing data. Every time I reorder the items in the repeater, the values in the TagInput are doubled.

The JSON data is coming from a column, not a relationship. The code is basic but I will provide a link https://gist.github.com/jnav24/40e34f2c9a50e8c0f588342533145a93
Screenshot_2023-09-07_at_12.21.57_PM.png
Screenshot_2023-09-07_at_12.22.14_PM.png
Screenshot_2023-09-07_at_12.22.33_PM.png
Gist
TagInput values are doubled on reordering items in Repeater - tag-input-sample.php
Was this page helpful?