Browse Source

Merge pull request #1794 from visuddhinanda/agile

点目录type=chapter
visuddhinanda 2 years ago
parent
commit
711722a6db
1 changed files with 3 additions and 10 deletions
  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;
               let newType = type;
               if (node.level === 0) {
               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") {
               if (typeof onArticleChange !== "undefined") {