1
0
Fork 0
mirror of synced 2024-07-04 05:50:57 +12:00

Small JS syntax refactor

This commit is contained in:
Andrew Kingston 2020-12-14 13:36:09 +00:00
parent 2da376df19
commit 63d9371b4d

View file

@ -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]) => {