remove node color

This commit is contained in:
Mutasem 2021-11-11 15:06:52 +01:00
parent 0758c83e55
commit a46024255c
2 changed files with 0 additions and 11 deletions

View file

@ -362,11 +362,6 @@ export const workflowHelpers = mixins(
nodeData.credentials = saveCredenetials;
}
}
// Save the node color only if it is different to the default color
if (node.color && node.color !== nodeType.defaults.color) {
nodeData.color = node.color;
}
} else {
// Node-Type is not known so save the data as it is
nodeData.credentials = node.credentials;

View file

@ -2059,12 +2059,6 @@ export default mixins(
node.disabled = false;
}
if (!node.hasOwnProperty('color')) {
// If no color is defined set the default color of the node type
if (nodeType && nodeType.defaults.color) {
node.color = nodeType.defaults.color as string;
}
}
if (!node.hasOwnProperty('parameters')) {
node.parameters = {};
}