mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 13:27:31 -08:00
🐛 Fix errors with unknown nodeTypes
This commit is contained in:
parent
bf4c8bc3a2
commit
6b2dc25059
|
@ -5,7 +5,7 @@ ARG N8N_VERSION
|
||||||
RUN if [ -z "$N8N_VERSION" ] ; then echo "The N8N_VERSION argument is missing!" ; exit 1; fi
|
RUN if [ -z "$N8N_VERSION" ] ; then echo "The N8N_VERSION argument is missing!" ; exit 1; fi
|
||||||
|
|
||||||
# Update everything and install needed dependencies
|
# Update everything and install needed dependencies
|
||||||
RUN apk add --update graphicsmagick tzdata
|
RUN apk add --update graphicsmagick tzdata git
|
||||||
|
|
||||||
# # Set a custom user to not have n8n run as root
|
# # Set a custom user to not have n8n run as root
|
||||||
USER root
|
USER root
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<div class="header-side-menu">
|
<div class="header-side-menu">
|
||||||
<span v-if="node">
|
<span v-if="node">
|
||||||
<display-with-change :key-name="'name'" @valueChanged="valueChanged"></display-with-change>
|
<display-with-change :key-name="'name'" @valueChanged="valueChanged"></display-with-change>
|
||||||
<a :href="'http://n8n.io/nodes/' + nodeType.name" target="_blank" class="node-info">
|
<a v-if="nodeType" :href="'http://n8n.io/nodes/' + nodeType.name" target="_blank" class="node-info">
|
||||||
<el-tooltip class="clickable" placement="top" effect="light">
|
<el-tooltip class="clickable" placement="top" effect="light">
|
||||||
<div slot="content" v-html="'<strong>Node Description:</strong><br />' + nodeTypeDescription + '<br /><br /><strong>For more information and usage examples click!</strong>'"></div>
|
<div slot="content" v-html="'<strong>Node Description:</strong><br />' + nodeTypeDescription + '<br /><br /><strong>For more information and usage examples click!</strong>'"></div>
|
||||||
<font-awesome-icon icon="question-circle" />
|
<font-awesome-icon icon="question-circle" />
|
||||||
|
@ -89,8 +89,8 @@ export default mixins(
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
nodeTypeDescription (): string {
|
nodeTypeDescription (): string {
|
||||||
if (this.nodeType!.description) {
|
if (this.nodeType && this.nodeType.description) {
|
||||||
return this.nodeType!.description;
|
return this.nodeType.description;
|
||||||
} else {
|
} else {
|
||||||
return 'No description found';
|
return 'No description found';
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,8 +79,8 @@ export const nodeBase = mixins(nodeIndex).extend({
|
||||||
maxConnections: -1,
|
maxConnections: -1,
|
||||||
endpoint: 'Rectangle',
|
endpoint: 'Rectangle',
|
||||||
endpointStyle: {
|
endpointStyle: {
|
||||||
width: nodeTypeData.outputs.length > 2 ? 9 : 10,
|
width: nodeTypeData && nodeTypeData.outputs.length > 2 ? 9 : 10,
|
||||||
height: nodeTypeData.outputs.length > 2 ? 18 : 24,
|
height: nodeTypeData && nodeTypeData.outputs.length > 2 ? 18 : 24,
|
||||||
fill: '#777',
|
fill: '#777',
|
||||||
stroke: '#777',
|
stroke: '#777',
|
||||||
lineWidth: 0,
|
lineWidth: 0,
|
||||||
|
@ -92,7 +92,7 @@ export const nodeBase = mixins(nodeIndex).extend({
|
||||||
maxConnections: -1,
|
maxConnections: -1,
|
||||||
endpoint: 'Dot',
|
endpoint: 'Dot',
|
||||||
endpointStyle: {
|
endpointStyle: {
|
||||||
radius: nodeTypeData.outputs.length > 2 ? 7 : 11,
|
radius: nodeTypeData && nodeTypeData.outputs.length > 2 ? 7 : 11,
|
||||||
fill: '#555',
|
fill: '#555',
|
||||||
outlineStroke: 'none',
|
outlineStroke: 'none',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue