From bbab4fc6e10a5d1e794c4ef11ada04ed82035510 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Thu, 27 Jun 2019 13:00:52 +0200 Subject: [PATCH] :bug: Fix bug --- packages/editor-ui/src/views/NodeView.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/editor-ui/src/views/NodeView.vue b/packages/editor-ui/src/views/NodeView.vue index a6b4de1154..08f902807b 100644 --- a/packages/editor-ui/src/views/NodeView.vue +++ b/packages/editor-ui/src/views/NodeView.vue @@ -1076,7 +1076,7 @@ export default mixins( // on the connection. So the one on the endpoint can be hidden. // @ts-ignore const outputNameOverlay = info.connection.endpoints[0].getOverlay('output-name-label'); - if (outputNameOverlay !== null) { + if (![null, undefined].includes(outputNameOverlay)) { outputNameOverlay.setVisible(false); } @@ -1133,7 +1133,7 @@ export default mixins( // display the output-name overlays on the endpoint if any exist if (sourceEndpoint !== undefined && sourceEndpoint.connections!.length === 1) { const outputNameOverlay = sourceEndpoint.getOverlay('output-name-label'); - if (outputNameOverlay !== null) { + if (![null, undefined].includes(outputNameOverlay)) { outputNameOverlay.setVisible(true); } }