( connection: SerializedConnection, executionResults: Map<string, NodeExecutionResult>, nodeMap: Map<string, SerializedNode>, )
| 183 | return node.data.textValue || ""; |
| 184 | }; |
| 185 | const extractConnectionData = ( |
| 186 | connection: SerializedConnection, |
| 187 | executionResults: Map<string, NodeExecutionResult>, |
| 188 | nodeMap: Map<string, SerializedNode>, |
| 189 | ) => { |
| 190 | const sourceResult = executionResults.get(connection.sourceId); |
| 191 | if (!sourceResult) return null; |
| 192 | if (connection.sourceHandle === "else" && sourceResult.elseData) { |
| 193 | return sourceResult.elseData; |
| 194 | } |
| 195 | const sourceNode = nodeMap.get(connection.sourceId); |
| 196 | if ( |
| 197 | isMultiOutputNodeType(sourceNode?.type) && |
| 198 | connection.sourceHandle && |
| 199 | sourceResult.data && |
| 200 | typeof sourceResult.data === "object" && |
| 201 | !Array.isArray(sourceResult.data) |
| 202 | ) { |
| 203 | return (sourceResult.data as Record<string, any>)[connection.sourceHandle] ?? null; |
| 204 | } |
| 205 | return sourceResult.data ?? null; |
| 206 | }; |
| 207 | const mergeTableSelectionInputs = ( |
| 208 | targetIncomingConnections: SerializedConnection[], |
| 209 | executionResults: Map<string, NodeExecutionResult>, |
no test coverage detected