fix
This commit is contained in:
parent
8c5dda2c76
commit
9772930762
|
@ -479,14 +479,14 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
|
||||
//#region 変更されていないプロパティを削除
|
||||
const _updates = getObjKeys(updates).reduce<Partial<MiUser>>((acc, key) => {
|
||||
if (updates[key] != null && updates[key] !== user[key]) {
|
||||
if (updates[key] !== undefined && updates[key] !== user[key]) {
|
||||
(acc[key] as MiUser[typeof key]) = updates[key];
|
||||
}
|
||||
return acc;
|
||||
}, {});
|
||||
|
||||
const _profileUpdates = getObjKeys(profileUpdates).reduce<Partial<MiUserProfile>>((acc, key) => {
|
||||
if (profileUpdates[key] != null && profileUpdates[key] !== profile[key]) {
|
||||
if (profileUpdates[key] !== undefined && profileUpdates[key] !== profile[key]) {
|
||||
(acc[key] as MiUserProfile[typeof key]) = profileUpdates[key];
|
||||
}
|
||||
return acc;
|
||||
|
|
Loading…
Reference in New Issue