Browse Source

Merge pull request #1794 from visuddhinanda/agile

点目录type=chapter
visuddhinanda 2 năm trước cách đây
mục cha
commit
711722a6db
1 tập tin đã thay đổi với 3 bổ sung10 xóa
  1. 3 10
      dashboard/src/components/article/TypePali.tsx

+ 3 - 10
dashboard/src/components/article/TypePali.tsx

@@ -248,16 +248,9 @@ const TypePaliWidget = ({
             ) => {
               let newType = type;
               if (node.level === 0) {
-                switch (type) {
-                  case "article":
-                    newType = "anthology";
-                    break;
-                  case "chapter":
-                    newType = "series";
-                    break;
-                  default:
-                    break;
-                }
+                newType = "series";
+              } else {
+                newType = "chapter";
               }
 
               if (typeof onArticleChange !== "undefined") {