Hmmm, i do not know how you use the search-function, but if you would search for → dublikate dropdown <— then you would also find posts, where you surely would find your solution.
i have been trying to fix for two days with not sleep
I don’t know how to interpret your statement, you should not forget, that this forum is not a wishlist, where you can wish some code for free.
And just to be honest, someone also is searching for months for a possible solution. So i would say, you are lucky to have found your solution already after 2-days.
Take a look onto the shown link, this link will help you out and is also very good explained.
And here one simple example of my own…
const list = [1, 2, 3, 3, 4, 9, 4]
const uniqueList = [...new Set(list)]
console.log(uniqueList)