From c5b61e81efeb1aad576a029d5784d332c9461e91 Mon Sep 17 00:00:00 2001 From: "Michael S. Molina" <70410625+michael-s-molina@users.noreply.github.com> Date: Tue, 22 Mar 2022 09:05:22 -0300 Subject: [PATCH] fix: Don't allow duplicated tag values in the Select (#19283) * fix: Don't allow duplicated tag values in the Select * Addresses comments and adds test --- .../src/components/Select/Select.test.tsx | 11 ++++++ .../src/components/Select/Select.tsx | 38 ++++++++----------- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/superset-frontend/src/components/Select/Select.test.tsx b/superset-frontend/src/components/Select/Select.test.tsx index 4701af236ceb..b247950abafb 100644 --- a/superset-frontend/src/components/Select/Select.test.tsx +++ b/superset-frontend/src/components/Select/Select.test.tsx @@ -314,6 +314,17 @@ test('searches for custom fields', async () => { expect(screen.getByText(NO_DATA)).toBeInTheDocument(); }); +test('removes duplicated values', async () => { + render(