From 4d37f0dfe2d785d63412a745c21a7e98230958e6 Mon Sep 17 00:00:00 2001 From: caadiq Date: Mon, 5 Jan 2026 22:31:56 +0900 Subject: [PATCH] =?UTF-8?q?fix(bot):=20=EC=98=A4=EB=A5=98=20=EB=B0=9C?= =?UTF-8?q?=EC=83=9D=20=ED=9B=84=20=EB=AA=A9=EB=A1=9D=20=EA=B0=B1=EC=8B=A0?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/pc/admin/AdminScheduleBots.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); }