Update to add additional check

This commit is contained in:
Brian Jemilo II
2026-02-02 17:57:12 -06:00
parent daed3cb26e
commit 373af1390f

View File

@@ -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'))