mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Fix role query on user list
This commit is contained in:
parent
8059f4332a
commit
33d1c6bbac
1 changed files with 1 additions and 1 deletions
|
|
@ -264,7 +264,7 @@ struct UserList: View {
|
|||
if roleFilter && deviceRoles.count > 0 {
|
||||
var rolesArray: [NSPredicate] = []
|
||||
for dr in deviceRoles {
|
||||
let deviceRolePredicate = NSPredicate(format: "user.role == %i", Int32(dr))
|
||||
let deviceRolePredicate = NSPredicate(format: "role == %i", Int32(dr))
|
||||
rolesArray.append(deviceRolePredicate)
|
||||
}
|
||||
let compoundPredicate = NSCompoundPredicate(type: .or, subpredicates: rolesArray)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue