Parcourir la source

Creation of empty page revisions uses the page creation endpoint

Shun Miyazawa il y a 3 ans
Parent
commit
be744aeb48
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      packages/app/src/client/services/page-operation.ts

+ 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 {