mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 02:32:18 +00:00
[Bug] Handle null return value from createBounds (#3046)
This commit is contained in:
@@ -38,10 +38,12 @@ const positionSelectionOverlay = (canvas: LGraphCanvas) => {
|
|||||||
|
|
||||||
visible.value = true
|
visible.value = true
|
||||||
const bounds = createBounds(selectedItems)
|
const bounds = createBounds(selectedItems)
|
||||||
updatePosition({
|
if (bounds) {
|
||||||
pos: [bounds[0], bounds[1]],
|
updatePosition({
|
||||||
size: [bounds[2], bounds[3]]
|
pos: [bounds[0], bounds[1]],
|
||||||
})
|
size: [bounds[2], bounds[3]]
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Register listener on canvas creation.
|
// Register listener on canvas creation.
|
||||||
|
|||||||
Reference in New Issue
Block a user