Explorar o código

add "chapter" in onArticleChange();

visuddhinanda %!s(int64=2) %!d(string=hai) anos
pai
achega
24ced7692f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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]);
                 }
               }}
             />