Fix crash

This commit is contained in:
pythongosssss
2023-08-23 10:17:57 +01:00
committed by GitHub
parent 4fd5726ec5
commit 4461d5e29a
+1 -1
View File
@@ -35,7 +35,7 @@ const ext = {
// Override node added to add a resize handler to force grid alignment
const onNodeAdded = app.graph.onNodeAdded;
app.graph.onNodeAdded = function (node) {
const r = onNodeAdded.apply(this, arguments);
const r = onNodeAdded?.apply(this, arguments);
const onResize = node.onResize;
node.onResize = function () {
if (setting?.value) {