reiji-h 2 лет назад
Родитель
Сommit
f23f411ed5
1 измененных файлов с 0 добавлено и 3 удалено
  1. 0 3
      apps/app/src/components/PageEditor/PageEditor.tsx

+ 0 - 3
apps/app/src/components/PageEditor/PageEditor.tsx

@@ -323,9 +323,6 @@ export const PageEditor = React.memo((props: Props): JSX.Element => {
         if (pageId != null) {
           formData.append('page_id', pageId);
         }
-        if (pageId == null) {
-          formData.append('page_body', codeMirrorEditor?.getDoc() ?? '');
-        }
 
         const { data: resAdd } = await apiv3PostForm('/attachment/add', formData);