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.
2 parents fc24414 + 02602e3 commit 67c650cCopy full SHA for 67c650c
apps/websocket/src/yjs/yjs.service.ts
@@ -71,14 +71,11 @@ export class YjsService
71
this.initializePage(pageId, editorDoc);
72
}
73
74
- if (!customDoc.name?.startsWith('flow-room-')) {
75
- return;
+ if (customDoc.name?.startsWith('flow-room-')) {
+ const workspaceId = customDoc.name.split('-')[2] ?? 'main';
76
+ // 만약 workspace document라면 node, edge 초기 데이터를 세팅해줍니다.
77
+ this.initializeWorkspace(workspaceId, doc);
78
-
- // TODO: workspaceId 파싱 로직 추가하기
79
- const workspaceId = 'main';
80
- // 만약 workspace document라면 node, edge 초기 데이터를 세팅해줍니다.
81
- this.initializeWorkspace(workspaceId, doc);
82
});
83
84
0 commit comments