Chore update eslint (#1045)

Update eslint and eslint-plugin-ember to their latest versions.
This commit is contained in:
Carlos Alcaide Corvo authored and GitHub committed 2022-04-13 14:17:46 -07:00
1 parent 670f38df74
commit 8776b46277
9 files changed
+162 -33

No files matched your search

+2 -2
View File
@@ -33,7 +33,7 @@ export default class AccountSerializer extends ApplicationSerializer {
* `attributes` entirely on update.
*/
serializeOIDC(snapshot) {
const { isNew } = snapshot?.record;
const { isNew } = snapshot?.record || {};
let serialized = super.serialize(...arguments);
delete serialized.attributes;
if (isNew) {
@@ -70,7 +70,7 @@ export default class AccountSerializer extends ApplicationSerializer {
}
// Change password custom method
if (snapshot?.adapterOptions?.method === 'change-password') {
const { currentPassword, newPassword } = snapshot?.adapterOptions;
const { currentPassword, newPassword } = snapshot?.adapterOptions || {};
serialized = this.serializeForChangePassword(
snapshot,
currentPassword,