fix select curriculumn error..
This commit is contained in:
+8
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user