1
0
Fork 0
mirror of synced 2024-06-29 19:41:03 +12:00

Small JS syntax refactor

This commit is contained in:
Andrew Kingston 2020-12-14 13:36:09 +00:00
parent fb1ca5e7ef
commit 6f521c1644

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