fix(access): fix an issue where an access would disappear (#1018)

pull/1021/head
Anthony Lapenna 7 years ago committed by GitHub
parent 0a436600f4
commit 780fec8e36

@ -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…
Cancel
Save