mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor: Use NodeConnectionType consistently across the code base (no-changelog) (#10595)
This commit is contained in:
@@ -5,7 +5,6 @@ import { mapStores } from 'pinia';
|
||||
import { useStorage } from '@/composables/useStorage';
|
||||
import { saveAs } from 'file-saver';
|
||||
import type {
|
||||
ConnectionTypes,
|
||||
IBinaryData,
|
||||
IBinaryKeyData,
|
||||
IDataObject,
|
||||
@@ -181,7 +180,7 @@ export default defineComponent({
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
connectionType: NodeConnectionType.Main as ConnectionTypes,
|
||||
connectionType: NodeConnectionType.Main as NodeConnectionType,
|
||||
binaryDataPreviewActive: false,
|
||||
dataSize: 0,
|
||||
showData: false,
|
||||
@@ -929,7 +928,7 @@ export default defineComponent({
|
||||
getRawInputData(
|
||||
runIndex: number,
|
||||
outputIndex: number,
|
||||
connectionType: ConnectionTypes = NodeConnectionType.Main,
|
||||
connectionType: NodeConnectionType = NodeConnectionType.Main,
|
||||
): INodeExecutionData[] {
|
||||
let inputData: INodeExecutionData[] = [];
|
||||
|
||||
@@ -974,7 +973,7 @@ export default defineComponent({
|
||||
getDataCount(
|
||||
runIndex: number,
|
||||
outputIndex: number,
|
||||
connectionType: ConnectionTypes = NodeConnectionType.Main,
|
||||
connectionType: NodeConnectionType = NodeConnectionType.Main,
|
||||
) {
|
||||
if (!this.node) {
|
||||
return 0;
|
||||
@@ -993,7 +992,7 @@ export default defineComponent({
|
||||
this.outputIndex = 0;
|
||||
this.refreshDataSize();
|
||||
this.closeBinaryDataDisplay();
|
||||
let outputTypes: ConnectionTypes[] = [];
|
||||
let outputTypes: NodeConnectionType[] = [];
|
||||
if (this.nodeType !== null && this.node !== null) {
|
||||
const outputs = this.getResolvedNodeOutputs();
|
||||
outputTypes = NodeHelpers.getConnectionTypes(outputs);
|
||||
|
||||
Reference in New Issue
Block a user