Accidentally Supplying Duplicated Values to Multi Select Makes them stay there

Hey, so this was driving me nuts. But if you accidentally supply duplicated values as default values to a multi-select they will stay there and accumulate whenever new duplicated values are supplied.

So if you get this bug that unselected values appear in the multi-select make sure you don't supply it duplicates. I guess this is more of a bug.

Hope this helps someone :slight_smile:

Hi @lys123,

Thank you for letting us know—I was able to reproduce this exact issue and created a bug report. We’ll reach back out to you in this thread once we push a fix!

Hey @lys123,

I also had accidentally supplied a couple of duplicate values. You might already be doing this, but I found that Instead of going through each item in the array in search of duplicates, the easiest way to solve this problem is wrapping the array in _.uniq(). - one of the Lodash utilities Retool supplies. This should remove all duplicates quickly until they push a fix :slight_smile:

1 Like