Skip to content

Commit 02602e3

Browse files
committed
fix: workspace id 잘 못 가져오던 이슈 해결
1 parent 51d1fe5 commit 02602e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/websocket/src/yjs/yjs.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ export class YjsService
7171
this.initializePage(pageId, editorDoc);
7272
}
7373

74-
if (!customDoc.name?.startsWith('flow-room-')) {
75-
const workspaceId = customDoc.name.split('-')[2];
74+
if (customDoc.name?.startsWith('flow-room-')) {
75+
const workspaceId = customDoc.name.split('-')[2] ?? 'main';
7676
// 만약 workspace document라면 node, edge 초기 데이터를 세팅해줍니다.
7777
this.initializeWorkspace(workspaceId, doc);
7878
}

0 commit comments

Comments
 (0)