Skip to content

Commit

Permalink
refactor: 노드 yMap 색상 저장 위치 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
ezcolin2 committed Dec 3, 2024
1 parent e321c3b commit cd4f649
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/websocket/src/yjs/yjs.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,14 @@ export class YjsService
if (node.type !== 'note') continue;

// node.data는 페이지에 대한 정보
const { id } = node.data;
// const { id, color} = node.data;
// TODO : 구조 분해 할당 쓰려다가 지금은 color를 받아오지 못 할 것 같아서 직접 꺼내왔습니다.
// TODO : 색상 추가되면 변경하겠습니다.
const id = node.data.id;
const color = node.data.color ?? '#FFFFFF'
const { x, y } = node.position;
const isHolding = node.isHolding;
const color = node.color ?? '#FFFFFF';
// const color = node.color ?? '#FFFFFF';
if (isHolding) continue;

const pageResponse = await axios.get(
Expand Down

0 comments on commit cd4f649

Please sign in to comment.