Small JS syntax refactor

This commit is contained in:
Andrew Kingston 2020-12-14 13:36:09 +00:00
parent fb1ca5e7ef
commit 6f521c1644
1 changed files with 1 additions and 1 deletions

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