mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
Update to add additional check
This commit is contained in:
@@ -51,7 +51,8 @@ export async function createNode(
|
||||
if (newNode && graph) {
|
||||
newNode.pos = [ posX, posY ]
|
||||
const addedNode = graph.add(newNode) ?? null
|
||||
graph.change()
|
||||
|
||||
if (addedNode) graph.change()
|
||||
return addedNode
|
||||
} else {
|
||||
useToastStore().addAlert(t('assetBrowser.failedToCreateNode'))
|
||||
|
||||
Reference in New Issue
Block a user