visuddhinanda пре 2 година
родитељ
комит
9472c53e03
1 измењених фајлова са 11 додато и 11 уклоњено
  1. 11 11
      dashboard/src/components/corpus/PaliChapterListByTag.tsx

+ 11 - 11
dashboard/src/components/corpus/PaliChapterListByTag.tsx

@@ -27,6 +27,8 @@ const PaliChapterListByTagWidget = (prop: IWidgetPaliChapterListByTag) => {
             Path: item.path,
             Book: item.book,
             Paragraph: item.paragraph,
+            chapterStrLen: item.chapter_strlen,
+            paragraphCount: item.chapter_len,
             progressLine: item.progress_line,
           };
         });
@@ -38,17 +40,15 @@ const PaliChapterListByTagWidget = (prop: IWidgetPaliChapterListByTag) => {
   }, [prop.tag]);
 
   return (
-    <>
-      <PaliChapterList
-        data={tableData}
-        maxLevel={1}
-        onChapterClick={(e: IChapterClickEvent) => {
-          if (typeof prop.onChapterClick !== "undefined") {
-            prop.onChapterClick(e);
-          }
-        }}
-      />
-    </>
+    <PaliChapterList
+      data={tableData}
+      maxLevel={1}
+      onChapterClick={(e: IChapterClickEvent) => {
+        if (typeof prop.onChapterClick !== "undefined") {
+          prop.onChapterClick(e);
+        }
+      }}
+    />
   );
 };