|
|
@@ -14,13 +14,12 @@ const PaliChapterListByTagWidget = ({ tag = [], onChapterClick }: IWidget) => {
|
|
|
const [tableData, setTableData] = useState<IPaliChapterData[]>([]);
|
|
|
|
|
|
useEffect(() => {
|
|
|
- console.log("palichapterlist useEffect");
|
|
|
if (tag.length === 0) {
|
|
|
setTableData([]);
|
|
|
return;
|
|
|
}
|
|
|
let url = `/v2/palitext?view=chapter&tags=${tag.join()}`;
|
|
|
- console.log("tag url", url);
|
|
|
+ console.log("url", url);
|
|
|
get<IPaliChapterListResponse>(url).then((json) => {
|
|
|
if (json.ok) {
|
|
|
let newTree: IPaliChapterData[] = json.data.rows.map((item) => {
|