Fix type assertion for single path point selection in viewport host

This commit is contained in:
2026-05-12 22:09:46 +02:00
parent fc97fe6e3d
commit b6621079fb

View File

@@ -11028,7 +11028,7 @@ export class ViewportHost {
return `pathPoint:${selection.pathId}:${selection.pointId}`;
case "pathPoints":
return selection.pointIds.length === 1
? `pathPoint:${selection.pathId}:${selection.pointIds[0]}`
? `pathPoint:${selection.pathId}:${selection.pointIds[0]!}`
: null;
case "entities":
return selection.ids.length === 1 ? `entity:${selection.ids[0]}` : null;