1
0
Fork 0
mirror of synced 2024-09-30 17:18:14 +13: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) { if (!allowEditing) {
return false return false
} }
return !(isUsersTable && ["email", "roleId"].indexOf(key) !== -1) return !(isUsersTable && ["email", "roleId"].includes(key))
} }
Object.entries(schema || {}).forEach(([key, value]) => { Object.entries(schema || {}).forEach(([key, value]) => {