First of all, Distinct is not a good practice to consume or showing data in Script level. I am not sure whether BRD need Unique values for your whole application. But, It's really seems strange issue.
Can you provide more information. This information not to get any thoughts
Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful