mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
cbe57aa96c
commit
1fc4a65307
@ -102,7 +102,8 @@ RED.editor = function() {
|
||||
if (!value || value == "_ADD_") {
|
||||
valid = false;
|
||||
} else {
|
||||
valid = RED.nodes.node(value).valid;
|
||||
var v = RED.nodes.node(value).valid;
|
||||
valid = (v==null || v);
|
||||
}
|
||||
}
|
||||
return valid;
|
||||
@ -214,10 +215,10 @@ RED.editor = function() {
|
||||
|
||||
var removedLinks = updateNodeProperties(editing_node);
|
||||
if (changed) {
|
||||
editing_node.changed = true;
|
||||
RED.view.dirty(true);
|
||||
RED.history.push({t:'edit',node:editing_node,changes:changes,links:removedLinks,dirty:wasDirty});
|
||||
}
|
||||
editing_node.changed = true;
|
||||
editing_node.dirty = true;
|
||||
validateNode(editing_node);
|
||||
RED.view.redraw();
|
||||
|
Loading…
Reference in New Issue
Block a user