diff --git a/frontend/src/pages/pc/admin/AdminScheduleBots.jsx b/frontend/src/pages/pc/admin/AdminScheduleBots.jsx index 6b7b7ef..84cb0ae 100644 --- a/frontend/src/pages/pc/admin/AdminScheduleBots.jsx +++ b/frontend/src/pages/pc/admin/AdminScheduleBots.jsx @@ -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); }