Browse Source

add anthologyId

visuddhinanda 2 years ago
parent
commit
1c557d5415
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dashboard/src/components/course/TextBook.tsx

+ 1 - 1
dashboard/src/components/course/TextBook.tsx

@@ -17,7 +17,7 @@ const TextBookWidget = ({ anthologyId, courseId }: IWidget) => {
         <Col flex="960px">
         <Col flex="960px">
           <AnthologyDetail
           <AnthologyDetail
             aid={anthologyId}
             aid={anthologyId}
-            onArticleSelect={(keys: string[]) => {
+            onArticleSelect={(anthologyId: string, keys: string[]) => {
               navigate(`/article/textbook/${courseId}_${keys[0]}?mode=read`);
               navigate(`/article/textbook/${courseId}_${keys[0]}?mode=read`);
             }}
             }}
           />
           />