summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-03-10 18:48:57 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-03-10 18:48:57 +0900
commit787404638addb83a567fb59b4f871931f11bc5af (patch)
treeddf95f94a47dd64973ede2acde88e7f02e9027a2 /packages
parentUpdate ja-JP.yml (diff)
downloadmisskey-787404638addb83a567fb59b4f871931f11bc5af.tar.gz
misskey-787404638addb83a567fb59b4f871931f11bc5af.tar.bz2
misskey-787404638addb83a567fb59b4f871931f11bc5af.zip
fix(client): プロフィールで設定した情報が削除できない
Fix #10279
Diffstat (limited to 'packages')
-rw-r--r--packages/frontend/src/pages/settings/profile.vue16
1 files changed, 11 insertions, 5 deletions
diff --git a/packages/frontend/src/pages/settings/profile.vue b/packages/frontend/src/pages/settings/profile.vue
index 4776a87d5b..a5f6c11f89 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,