Skip to content

Commit

Permalink
fix(bugs): 无法正常更新收藏
Browse files Browse the repository at this point in the history
  • Loading branch information
eleliauk committed Dec 26, 2024
1 parent 07cd50c commit 6540881
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/classInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ export default function Index() {
void get(`/courses/${courseId}/detail`).then((res) => {
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
setCourse(res.data);
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
setCollect(res.data.is_collected);
!res.data && bailout();
});
} catch (error) {
Expand Down

0 comments on commit 6540881

Please sign in to comment.