diff --git a/CHANGELOG.md b/CHANGELOG.md index f72830776..4ef13da57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ You should also include the user name that made the change. - Playのソースコード上限文字数を2倍に拡張 ### Bugfixes +- プロフィールで設定した情報が削除できない問題を修正 - ロールで広告を無効にするとadmin/adsでプレビューがでてこない問題を修正 - /api-consoleページにアクセスすると404が出る問題を修正 - SMTP Login id length is too short diff --git a/packages/frontend/src/pages/settings/profile.vue b/packages/frontend/src/pages/settings/profile.vue index 4776a87d5..a5f6c11f8 100644 --- a/packages/frontend/src/pages/settings/profile.vue +++ b/packages/frontend/src/pages/settings/profile.vue @@ -134,11 +134,17 @@ function saveFields() { function save() { os.apiWithDialog('i/update', { - name: profile.name ?? null, - description: profile.description ?? null, - location: profile.location ?? null, - birthday: profile.birthday ?? null, - lang: profile.lang ?? null, + // 空文字列をnullにしたいので??は使うな + // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing + name: profile.name || null, + // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing + description: profile.description || null, + // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing + location: profile.location || null, + // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing + birthday: profile.birthday || null, + // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing + lang: profile.lang || null, isBot: !!profile.isBot, isCat: !!profile.isCat, showTimelineReplies: !!profile.showTimelineReplies,