Skip to content

Commit 67291a5

Browse files
committed
fix: 불필요한 체크 제거
1 parent 241e939 commit 67291a5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

frontend/src/components/canvas/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,7 @@ function Flow({ className }: CanvasProps) {
8888
const updatedNode = nodesMap.get(nodeId) as Node;
8989

9090
if (change.action === "add") {
91-
if (!existingPageIds.current.has(nodeId)) {
92-
queryClient.invalidateQueries({ queryKey: ["pages"] });
93-
}
91+
queryClient.invalidateQueries({ queryKey: ["pages"] });
9492
}
9593

9694
setNodes((nds) => {

0 commit comments

Comments
 (0)