Skip to content

Commit

Permalink
Hover Over NodeInterface – fix if no initial interface value is provi…
Browse files Browse the repository at this point in the history
…ded.
  • Loading branch information
yojeek committed Nov 16, 2023
1 parent f28558c commit 2a2cfd9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/renderer-vue/src/node/NodeInterface.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,15 @@ import {
TEMPORARY_CONNECTION_HANDLER_INJECTION_SYMBOL,
} from "../editor/temporaryConnection";
const ellipsis = (value: string, characters = 100) => {
const ellipsis = (value: string | undefined, characters = 100) => {
if (typeof value === "undefined") {
return "undefined";
}
if (value.length > characters) {
return value.slice(0, characters) + "...";
}
return value;
};
Expand Down

0 comments on commit 2a2cfd9

Please sign in to comment.