Procházet zdrojové kódy

Creation of empty page revisions uses the page creation endpoint

Shun Miyazawa před 3 roky
rodič
revize
be744aeb48

+ 1 - 1
packages/app/src/client/services/page-operation.ts

@@ -144,7 +144,7 @@ export const saveOrUpdate = async(optionsToSave: OptionsToSave, pageInfo: PageIn
   // }
 
   let res;
-  if (pageId == null) {
+  if (pageId == null || (pageId != null && revisionId == null)) {
     res = await createPage(path, markdown, options);
   }
   else {