From 3472906bd92dc7889654ea0b9b351b3179134e76 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 13 Apr 2026 22:28:44 +0200 Subject: [PATCH] Refactor path selection logic in App.tsx --- src/app/App.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/App.tsx b/src/app/App.tsx index 5c2f8340..e067619c 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -9340,9 +9340,10 @@ export function App({ store, initialStatusMessage }: AppProps) {
{pathList.map((path, pathIndex) => { const label = getScenePathLabel(path, pathIndex); - const isSelected = - editorState.selection.kind === "paths" && - editorState.selection.ids.includes(path.id); + const isSelected = isPathSelected( + editorState.selection, + path.id + ); const authoredStateSummary = formatAuthoredObjectStateSummary(path);