visuddhinanda 2 лет назад
Родитель
Сommit
5129a4846d
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      dashboard/src/components/article/ToolButtonToc.tsx

+ 3 - 3
dashboard/src/components/article/ToolButtonToc.tsx

@@ -45,9 +45,9 @@ const ToolButtonTocWidget = ({
         <AnthologyTocTree
           anthologyId={anthologyId}
           channels={channels}
-          onArticleSelect={(anthologyId: string, keys: string[]) => {
-            if (typeof onSelect !== "undefined" && keys.length > 0) {
-              onSelect(keys[0]);
+          onClick={(anthology: string, article: string, target: string) => {
+            if (typeof onSelect !== "undefined") {
+              onSelect(article, target);
             }
           }}
         />