fix(bot): 오류 발생 후 목록 갱신 추가
This commit is contained in:
parent
e216539f34
commit
4d37f0dfe2
1 changed files with 3 additions and 1 deletions
|
|
@ -105,14 +105,16 @@ function AdminScheduleBots() {
|
|||
type: 'success',
|
||||
message: `${data.addedCount}개 일정이 추가되었습니다. (전체 ${data.total}개)`
|
||||
});
|
||||
fetchBots();
|
||||
} else {
|
||||
const data = await response.json();
|
||||
setToast({ type: 'error', message: data.error || '동기화 실패' });
|
||||
}
|
||||
// 성공/실패 모두 목록 갱신
|
||||
fetchBots();
|
||||
} catch (error) {
|
||||
console.error('전체 동기화 오류:', error);
|
||||
setToast({ type: 'error', message: '동기화 중 오류가 발생했습니다.' });
|
||||
fetchBots(); // 오류에도 목록 갱신
|
||||
} finally {
|
||||
setSyncing(null);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue