fix(editor): Fix icon for unknown node type (#7842)

This commit is contained in:
Tomi Turtiainen 2023-11-28 19:16:51 +02:00 committed by GitHub
parent 2f8cb419df
commit 28ac5a750e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -38,3 +38,11 @@ Hoverable.args = {
nodeTypeName: 'We ❤️ n8n',
showTooltip: true,
};
export const Unknown = DefaultTemplate.bind({});
Unknown.args = {
type: 'unknown',
nodeTypeName: '',
size: 40,
color: 'red',
};

View file

@ -17,7 +17,6 @@
</div>
<div v-else :class="$style.nodeIconPlaceholder">
{{ nodeTypeName ? nodeTypeName.charAt(0) : '?' }}
?
</div>
</n8n-tooltip>
<template v-else>
@ -30,7 +29,6 @@
</div>
<div v-else :class="$style.nodeIconPlaceholder">
{{ nodeTypeName ? nodeTypeName.charAt(0) : '?' }}
?
</div>
</template>
</div>