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 51d1fe5 commit 02602e3Copy full SHA for 02602e3
apps/websocket/src/yjs/yjs.service.ts
@@ -71,8 +71,8 @@ export class YjsService
71
this.initializePage(pageId, editorDoc);
72
}
73
74
- if (!customDoc.name?.startsWith('flow-room-')) {
75
- const workspaceId = customDoc.name.split('-')[2];
+ if (customDoc.name?.startsWith('flow-room-')) {
+ const workspaceId = customDoc.name.split('-')[2] ?? 'main';
76
// 만약 workspace document라면 node, edge 초기 데이터를 세팅해줍니다.
77
this.initializeWorkspace(workspaceId, doc);
78
0 commit comments