mirror of
https://github.com/harness/drone.git
synced 2025-05-31 23:25:17 +00:00
fix: [CODE-2944] remove button removes multiple id users and sa in bypass list (#3467)
This commit is contained in:
parent
53142b18a8
commit
f3c646190f
@ -24,7 +24,7 @@ const BypassList = (props: {
|
||||
<Icon
|
||||
name="code-close"
|
||||
onClick={() => {
|
||||
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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user