From d0cea19e6fb7039d050366e28343a5cb89134480 Mon Sep 17 00:00:00 2001 From: baegyeong Date: Wed, 15 Jan 2025 13:50:39 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20Suspense=EB=A5=BC=20=EC=82=AC?= =?UTF-8?q?=EC=9A=A9=ED=95=98=EA=B8=B0=20=EB=95=8C=EB=AC=B8=EC=97=90=20isL?= =?UTF-8?q?oading=20=EC=83=81=ED=83=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 박경희 --- apps/frontend/src/widgets/TopNavView/ui/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/frontend/src/widgets/TopNavView/ui/index.tsx b/apps/frontend/src/widgets/TopNavView/ui/index.tsx index 77b78445..e17d1713 100644 --- a/apps/frontend/src/widgets/TopNavView/ui/index.tsx +++ b/apps/frontend/src/widgets/TopNavView/ui/index.tsx @@ -11,10 +11,10 @@ interface TopNavProps { isExpanded: boolean; } export function TopNavView({ onExpand, isExpanded }: TopNavProps) { - const { data, isLoading } = useCurrentWorkspace(); + const { data } = useCurrentWorkspace(); const getWorkspaceTitle = () => { - if (!data || isLoading) return "로딩 중"; + if (!data) return ""; if (data.workspace.workspaceId === "main") return "공용 워크스페이스"; From 0c8604b3ba92adb2d970f8dbbea84ad1840da2ff Mon Sep 17 00:00:00 2001 From: baegyeong Date: Wed, 15 Jan 2025 14:00:47 +0900 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=EC=82=AC=EC=9A=A9=ED=95=98?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EB=8A=94=20=ED=8C=8C=EC=9D=BC=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 박경희 --- .../src/features/canvas/lib/updateNodesMap.ts | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100644 apps/frontend/src/features/canvas/lib/updateNodesMap.ts diff --git a/apps/frontend/src/features/canvas/lib/updateNodesMap.ts b/apps/frontend/src/features/canvas/lib/updateNodesMap.ts deleted file mode 100644 index cf3af859..00000000 --- a/apps/frontend/src/features/canvas/lib/updateNodesMap.ts +++ /dev/null @@ -1,27 +0,0 @@ -import * as Y from "yjs"; -import { YEvent } from "yjs"; - -import { Node } from "@/entities/node"; - -export const updateNodesMapByYTextEvent = ( - event: YEvent[], - nodesMap: Y.Map, - key: "title" | "emoji", -) => { - if (!event[0].path.length) return; - - const pageId = event[0].path[0].toString().split("_")[1]; - const value = event[0].target.toString(); - - const existingNode = nodesMap.get(pageId) as Node; - if (!existingNode) return; - - const newNode: Node = { - ...existingNode, - data: { ...existingNode.data, id: pageId, [key]: value }, - selected: false, - isHolding: false, - }; - - nodesMap.set(pageId, newNode); -};