visuddhinanda il y a 3 ans
Parent
commit
e8ff0e906c
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      dashboard/src/components/corpus/PaliChapterListByTag.tsx

+ 2 - 0
dashboard/src/components/corpus/PaliChapterListByTag.tsx

@@ -24,6 +24,7 @@ const Widget = (prop: IWidgetPaliChapterListByTag) => {
         return {
           Title: item.title,
           PaliTitle: item.title,
+          level: item.level,
           Path: item.path,
           Book: item.book,
           Paragraph: item.paragraph,
@@ -37,6 +38,7 @@ const Widget = (prop: IWidgetPaliChapterListByTag) => {
     <>
       <PaliChapterList
         data={tableData}
+        maxLevel={1}
         onChapterClick={(e: IChapterClickEvent) => {
           if (typeof prop.onChapterClick !== "undefined") {
             prop.onChapterClick(e);