From a4729897a647701a35aec24efe65af30fcd34350 Mon Sep 17 00:00:00 2001 From: Rodrigo Quelca Date: Fri, 2 Feb 2024 09:33:02 -0400 Subject: [PATCH] fix:optional chain expression --- src/mixins/linkConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mixins/linkConfig.js b/src/mixins/linkConfig.js index 7dd41dfd4..bf1052f3b 100644 --- a/src/mixins/linkConfig.js +++ b/src/mixins/linkConfig.js @@ -228,7 +228,7 @@ export default { const targetNode = get(this.currentTarget, 'component.node'); const targetConfig = targetNode && this.nodeRegistry[targetNode.type]; // Validate the flow with the new target node. - const isValid = this.isValid && this.isValid({ + const isValid = this.isValid?.({ sourceShape: this.sourceShape, targetShape: this.currentTarget, targetConfig,