From f3c646190faf5324c5e68b51c6e253c3f1d78cd3 Mon Sep 17 00:00:00 2001 From: Ritik Kapoor Date: Fri, 21 Feb 2025 18:29:51 +0000 Subject: [PATCH] fix: [CODE-2944] remove button removes multiple id users and sa in bypass list (#3467) --- .../BranchProtection/BranchProtectionForm/BypassList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/BranchProtection/BranchProtectionForm/BypassList.tsx b/web/src/components/BranchProtection/BranchProtectionForm/BypassList.tsx index 4f0772aed..10fc3686e 100644 --- a/web/src/components/BranchProtection/BranchProtectionForm/BypassList.tsx +++ b/web/src/components/BranchProtection/BranchProtectionForm/BypassList.tsx @@ -24,7 +24,7 @@ const BypassList = (props: { { - const filteredData = bypassList.filter(item => !(item[0] === owner[0] && item[1] === owner[1])) + const filteredData = bypassList.filter(item => !(item === owner)) setFieldValue('bypassList', filteredData) }} className={css.codeClose}