Skip to content

Commit

Permalink
fix: 保存時のエラーの種別にかかわらずmodalを閉じないように
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkokari-gtyih committed Jan 17, 2025
1 parent d69b830 commit 9d88b3a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/frontend/src/components/MkPostForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -748,12 +748,7 @@ async function saveServerDraft(clearLocal = false): Promise<{ canClosePostForm:
}
return { canClosePostForm: true };
}).catch((err) => {
// これ以上下書きが保存できない場合のみ、投稿フォームを閉じずに元の画面に戻る
if (err.id === '9ee33bbe-fde3-4c71-9b51-e50492c6b9c8') {
return { canClosePostForm: false };
} else {
return { canClosePostForm: true };
}
return { canClosePostForm: false };
});
}

Expand Down

0 comments on commit 9d88b3a

Please sign in to comment.