Răsfoiți Sursa

jwt加入para_end

visuddhinanda 1 an în urmă
părinte
comite
fb14af3aeb

+ 2 - 1
dashboard-v4/dashboard/src/components/task/TaskBuilderChapter.tsx

@@ -100,6 +100,7 @@ const TaskBuilderChapter = ({
                   res_type: "channel",
                   res_type: "channel",
                   book: chapter.book,
                   book: chapter.book,
                   para_start: chapter.paragraph,
                   para_start: chapter.paragraph,
+                  para_end: chapter.paragraph + chapter.chapter_len,
                 });
                 });
               });
               });
             });
             });
@@ -193,7 +194,7 @@ const TaskBuilderChapter = ({
                 data: chapter.map((item, id) => {
                 data: chapter.map((item, id) => {
                   return {
                   return {
                     id: item.paragraph.toString(),
                     id: item.paragraph.toString(),
-                    title: item.text,
+                    title: item.text ?? "",
                     type: "instance",
                     type: "instance",
                     parent_id: item.parent.toString(),
                     parent_id: item.parent.toString(),
                     res_id: `${item.book}-${item.paragraph}`,
                     res_id: `${item.book}-${item.paragraph}`,