Skip to content

Commit 2425a60

Browse files
Tolerblancsummersummerwhyezcolin2
committed
fix: 노드 기본 컬러값 변경
Co-authored-by: Summer Min <[email protected]> Co-authored-by: ez <[email protected]>
1 parent 2361924 commit 2425a60

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

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

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export class YjsService
187187
x: node.x,
188188
y: node.y,
189189
},
190-
color: node.color ?? '#FFFFFFF',
190+
color: node.color ?? '#FFFFFF',
191191
selected: false, // 기본적으로 선택되지 않음
192192
dragging: true,
193193
isHolding: false,
@@ -267,17 +267,9 @@ export class YjsService
267267
const { id } = node.data;
268268
const { x, y } = node.position;
269269
const isHolding = node.isHolding;
270-
const color = node.color ?? 'main';
270+
const color = node.color ?? '#FFFFFF';
271271
if (isHolding) continue;
272272

273-
// TODO : node의 경우 key 값을 page id가 아닌 node id로 변경
274-
// const findPage = await this.pageService.findPageById(id);
275-
// await this.nodeService.updateNode(findPage.node.id, {
276-
// title,
277-
// x,
278-
// y,
279-
// });
280-
281273
const pageResponse = await axios.get(
282274
`http://backend:3000/api/page/${id}`,
283275
);

0 commit comments

Comments
 (0)