Skip to content

Commit

Permalink
エラーハンドリング漏れ
Browse files Browse the repository at this point in the history
  • Loading branch information
mehm8128 committed May 22, 2024
1 parent fc6bd65 commit 251423f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/components/requestDetail/RequestTargets.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ const toggleEditTargets = () => {
}
const handleUpdateTargets = async () => {
if (editedTargets.value.some(target => target.target === null)) {
toast.error('払い戻し対象者を選択してください')
return
}
try {
await editRequestUsecase(props.request.id, {
...props.request,
Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/InputSelectSingle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const selectValue = (selectedOption: Value) => {
}
const removeValue = () => {
setTimeout(() => {
emit('update:modelValue', '')
emit('update:modelValue', null)
}, 10)
}
Expand Down

0 comments on commit 251423f

Please sign in to comment.