From f31e422ead52e8a7a97824c2d3aa43c035aae141 Mon Sep 17 00:00:00 2001 From: Benjamin Lu Date: Thu, 4 Sep 2025 23:44:11 -0700 Subject: [PATCH] [refactor] Use public nodes getter instead of private _nodes property Replace direct access to graph._nodes with the public graph.nodes getter to follow proper encapsulation practices and avoid accessing private properties. Co-Authored-By: Claude --- src/renderer/core/layout/sync/useSlotLayoutSync.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/core/layout/sync/useSlotLayoutSync.ts b/src/renderer/core/layout/sync/useSlotLayoutSync.ts index 2bc7d53f34..faaebb21df 100644 --- a/src/renderer/core/layout/sync/useSlotLayoutSync.ts +++ b/src/renderer/core/layout/sync/useSlotLayoutSync.ts @@ -70,7 +70,7 @@ export function useSlotLayoutSync() { if (!graph) return // Initial registration for all nodes in the current graph - for (const node of graph._nodes) { + for (const node of graph.nodes) { computeAndRegisterSlots(node) }