Small JS syntax refactor
This commit is contained in:
parent
fb1ca5e7ef
commit
6f521c1644
|
@ -82,7 +82,7 @@
|
|||
if (!allowEditing) {
|
||||
return false
|
||||
}
|
||||
return !(isUsersTable && ["email", "roleId"].indexOf(key) !== -1)
|
||||
return !(isUsersTable && ["email", "roleId"].includes(key))
|
||||
}
|
||||
|
||||
Object.entries(schema || {}).forEach(([key, value]) => {
|
||||
|
|
Loading…
Reference in New Issue