Răsfoiți Sursa

add "chapter" in onArticleChange();

visuddhinanda 2 ani în urmă
părinte
comite
24ced7692f
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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]);
                 }
               }}
             />