diff --git a/packages/editor-ui/src/components/VariableSelector.vue b/packages/editor-ui/src/components/VariableSelector.vue index 0fed0bbc0da24..f69267ff431ed 100644 --- a/packages/editor-ui/src/components/VariableSelector.vue +++ b/packages/editor-ui/src/components/VariableSelector.vue @@ -557,9 +557,7 @@ export default mixins( if (pinData) { const output = this.getNodePinDataOutput(parentNodeName, pinData, filterText, true); - pinDataOptions[0].options = pinDataOptions[0].options!.concat( - output && output[0].options ? output[0].options : [], - ); + pinDataOptions[0].options = pinDataOptions[0].options!.concat(output?.[0]?.options ?? []); } });