|
@@ -209,7 +209,11 @@ const TypeCourseWidget = ({
|
|
|
mode={mode}
|
|
mode={mode}
|
|
|
anthologyId={anthologyId}
|
|
anthologyId={anthologyId}
|
|
|
active={true}
|
|
active={true}
|
|
|
- onArticleChange={(type: ArticleType, id: string, target: string) => {}}
|
|
|
|
|
|
|
+ onArticleChange={(type: ArticleType, id: string, target: string) => {
|
|
|
|
|
+ if (typeof onArticleChange !== "undefined") {
|
|
|
|
|
+ onArticleChange(type, id, target);
|
|
|
|
|
+ }
|
|
|
|
|
+ }}
|
|
|
onLoad={(data: IArticleDataResponse) => {}}
|
|
onLoad={(data: IArticleDataResponse) => {}}
|
|
|
onAnthologySelect={(id: string) => {}}
|
|
onAnthologySelect={(id: string) => {}}
|
|
|
/>
|
|
/>
|