Skip to content

Commit 5bf3c9b

Browse files
committed
refactor: 프론트 api 요청 삭제
1 parent aa212bc commit 5bf3c9b

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

apps/frontend/src/components/EditorView.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ export default function EditorView() {
6363
const json = editor.getJSON();
6464

6565
setSaveStatus("unsaved");
66-
updatePageMutation.mutate(
67-
{ id: currentPage, pageData: { title: pageTitle, content: json } },
68-
{
69-
onSuccess: () => setSaveStatus("saved"),
70-
onError: () => setSaveStatus("unsaved"),
71-
},
72-
);
66+
// updatePageMutation.mutate(
67+
// { id: currentPage, pageData: { title: pageTitle, content: json } },
68+
// {
69+
// onSuccess: () => setSaveStatus("saved"),
70+
// onError: () => setSaveStatus("unsaved"),
71+
// },
72+
// );
7373
},
7474
500,
7575
);

apps/frontend/src/components/editor/index.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ const Editor = ({
5757
onContentError={({ disableCollaboration }) => {
5858
disableCollaboration();
5959
}}
60-
onCreate={({ editor }) => {
61-
provider.on("sync", () => {
62-
if (editor.isEmpty && initialContent) {
63-
editor.commands.setContent(initialContent);
64-
}
65-
});
66-
}}
60+
// onCreate={({ editor }) => {
61+
// provider.on("sync", () => {
62+
// if (editor.isEmpty && initialContent) {
63+
// editor.commands.setContent(initialContent);
64+
// }
65+
// });
66+
// }}
6767
extensions={[
6868
...extensions,
6969
Collaboration.extend().configure({

0 commit comments

Comments
 (0)