mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 22:59:14 +00:00
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:
@@ -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)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user