Skip to content

Commit

Permalink
fix(ui): fix issue where editing role would clear access (#2475)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmorganca committed Jul 6, 2022
1 parent d759cb5 commit 6fe7bb4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/pages/destinations/[[...slug]].js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ function Details({ destination, onDelete }) {
mutate({ items: grants.filter(x => x.id !== g.id) })
}}
onChange={async privilege => {
if (privilege === g.privilege) {
return
}

const res = await fetch('/api/grants', {
method: 'POST',
body: JSON.stringify({
Expand Down

0 comments on commit 6fe7bb4

Please sign in to comment.