소스 검색

add "chapter" in onArticleChange();

visuddhinanda 2 년 전
부모
커밋
24ced7692f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      dashboard/src/components/article/TypePali.tsx

+ 2 - 2
dashboard/src/components/article/TypePali.tsx

@@ -1,5 +1,5 @@
 import { useEffect, useState } from "react";
-import { Divider, message, Result, Space, Tag } from "antd";
+import { Divider, message, Space, Tag } from "antd";
 
 import { get, post } from "../../request";
 import { IArticleDataResponse, IArticleResponse } from "../api/Article";
@@ -128,7 +128,7 @@ const TypePaliWidget = ({
               onSelect={(keys: string[]) => {
                 console.log(keys);
                 if (typeof onArticleChange !== "undefined" && keys.length > 0) {
-                  onArticleChange(keys[0]);
+                  onArticleChange("chapter", keys[0]);
                 }
               }}
             />