mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 13:25:26 +02:00
fix(access): fix an issue where an access would disappear (#1018)
This commit is contained in:
parent
0a436600f4
commit
780fec8e36
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ function (AccessService, Pagination, Notifications) {
|
||||||
|
|
||||||
function removeFromAccesses(access, accesses) {
|
function removeFromAccesses(access, accesses) {
|
||||||
_.remove(accesses, function(n) {
|
_.remove(accesses, function(n) {
|
||||||
return n.Id === access.Id;
|
return n.Id === access.Id && n.Type === access.Type;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue