mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
remove node color
This commit is contained in:
parent
0758c83e55
commit
a46024255c
|
@ -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;
|
||||
|
|
|
@ -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 = {};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue