We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd43ca5 commit aa212bcCopy full SHA for aa212bc
apps/backend/src/yjs/yjs.service.ts
@@ -97,11 +97,13 @@ export class YjsService
97
98
// content가 비어있다면 내부 구조가 novel editor schema를 따르지 않기 때문에 오류가 납니다.
99
// content가 존재할 때만 넣어줍니다.
100
+ const pageContent = JSON.parse(JSON.stringify(findPage.content));
101
const novelEditorContent = {
102
type: 'doc',
- content: findPage.content,
103
+ content: pageContent,
104
};
- Object.keys(findPage.content).length > 0 &&
105
+ pageContent.length > 0 &&
106
+ // JSON.parse(findPage.content).length > 0 &&
107
this.initializePageContent(novelEditorContent, editorDoc);
108
109
// 페이지 내용 변경 사항을 감지해서 데이터베이스에 갱신합니다.
0 commit comments