Explorar o código

Merge pull request #1794 from visuddhinanda/agile

点目录type=chapter
visuddhinanda %!s(int64=2) %!d(string=hai) anos
pai
achega
711722a6db
Modificáronse 1 ficheiros con 3 adicións e 10 borrados
  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") {