visuddhinanda 3 yıl önce
ebeveyn
işleme
e8ff0e906c

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

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