Update path selection check to include pathPoints

This commit is contained in:
2026-05-12 22:08:00 +02:00
parent e77d55ee23
commit 4e7e30dec1

View File

@@ -8,7 +8,8 @@ import type { EditorCommand } from "./command";
function selectionIncludesPath(selection: EditorSelection, pathId: string): boolean {
return (
(selection.kind === "paths" && selection.ids.includes(pathId)) ||
(selection.kind === "pathPoint" && selection.pathId === pathId)
(selection.kind === "pathPoint" && selection.pathId === pathId) ||
(selection.kind === "pathPoints" && selection.pathId === pathId)
);
}