Переглянути джерело

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 { 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 { get, post } from "../../request";
 import { IArticleDataResponse, IArticleResponse } from "../api/Article";
 import { IArticleDataResponse, IArticleResponse } from "../api/Article";
@@ -128,7 +128,7 @@ const TypePaliWidget = ({
               onSelect={(keys: string[]) => {
               onSelect={(keys: string[]) => {
                 console.log(keys);
                 console.log(keys);
                 if (typeof onArticleChange !== "undefined" && keys.length > 0) {
                 if (typeof onArticleChange !== "undefined" && keys.length > 0) {
-                  onArticleChange(keys[0]);
+                  onArticleChange("chapter", keys[0]);
                 }
                 }
               }}
               }}
             />
             />