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}