From d47b43f7b2c353152c4e14ec132fe43fc0cb4943 Mon Sep 17 00:00:00 2001 From: Nawaz Dhandala Date: Fri, 20 Mar 2026 13:39:11 +0000 Subject: [PATCH] feat(dropdown): optimize getDropdownOptionsFromArray to ensure unique values --- Common/UI/Utils/Dropdown.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Common/UI/Utils/Dropdown.ts b/Common/UI/Utils/Dropdown.ts index 7c71f815aa..8456fdd913 100644 --- a/Common/UI/Utils/Dropdown.ts +++ b/Common/UI/Utils/Dropdown.ts @@ -80,7 +80,8 @@ export default class DropdownUtil { public static getDropdownOptionsFromArray( arr: Array, ): Array { - return arr.map((item: string) => { + const uniqueArr: Array = [...new Set(arr)]; + return uniqueArr.map((item: string) => { return { label: item, value: item,