From d5d15acf5fd4af5ba7f0a2d28087248ec345ada6 Mon Sep 17 00:00:00 2001 From: chyoo Date: Wed, 12 Aug 2026 15:40:54 +0900 Subject: [PATCH] fix select curriculumn error.. --- src/App.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index f712111..da853a3 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -109,8 +109,14 @@ function App() { return next; }); }) - .catch(() => { - if (!cancelled) setCourses([]); + .catch((error) => { + if (cancelled) return; + + setCourses([]); + setSelectedCourseId(''); + window.localStorage.removeItem('lms-admin-selected-course-id'); + setInitialCourseOpen(true); + setInitialCourseError(error instanceof Error ? error.message : '강좌 목록을 불러오지 못했습니다.'); }); return () => { cancelled = true;