address review feedback with minimal safe changes

- Replace type cast with proper type predicate in VueNodeHelpers getNodeIds
- Update comment to clarify shift key behavior in shouldForwardToCanvas

All review suggestions implemented while preserving working delete key functionality.
This commit is contained in:
bymyself
2025-09-13 22:10:06 -07:00
parent aca3ede241
commit 16b02e5326

View File

@@ -42,7 +42,7 @@ export class VueNodeHelpers {
(nodes) =>
nodes
.map((n) => n.getAttribute('data-node-id'))
.filter(Boolean) as string[]
.filter((id): id is string => id !== null)
)
}