Chore update eslint (#1045)
Update eslint and eslint-plugin-ember to their latest versions.
This commit is contained in:
1 parent
670f38df74
commit
8776b46277
9 files changed
+162
-33
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user