Skip to content

Commit d8a7e37

Browse files
committed
4885 - SF
1 parent 4015123 commit d8a7e37

3 files changed

Lines changed: 20 additions & 17 deletions

File tree

client/src/pages/platform/cluster-element-editor/ai-agent-editor/components/ai-agent-testing-panel/hooks/useAiAgentTestDataPills.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import getDataPillsFromProperties from '@/pages/platform/workflow-editor/utils/g
44
import getOutputSchemaFromWorkflowNodeOutput from '@/pages/platform/workflow-editor/utils/getOutputSchemaFromWorkflowNodeOutput';
55
import {useGetPreviousWorkflowNodeOutputsQuery} from '@/shared/queries/platform/workflowNodeOutputs.queries';
66
import {useEnvironmentStore} from '@/shared/stores/useEnvironmentStore';
7-
import {ComponentPropertiesType, DataPillType} from '@/shared/types';
7+
import {ComponentPropertiesType} from '@/shared/types';
88
import {useEffect, useMemo} from 'react';
99
import {useShallow} from 'zustand/shallow';
1010

@@ -79,11 +79,12 @@ export default function useAiAgentTestDataPills() {
7979

8080
const dataPills = getDataPillsFromProperties(componentProperties, filteredNodeNames).flat(Infinity);
8181

82-
const workflowInputDataPills = workflow.inputs?.map((input) => ({
83-
id: input.name,
84-
nodeName: input.name,
85-
value: input.name,
86-
})) || [];
82+
const workflowInputDataPills =
83+
workflow.inputs?.map((input) => ({
84+
id: input.name,
85+
nodeName: input.name,
86+
value: input.name,
87+
})) || [];
8788

8889
return [...dataPills, ...workflowInputDataPills];
8990
}, [componentDefinitions, taskDispatcherDefinitions, workflow.inputs, workflowNodeOutputs]);

client/src/pages/platform/cluster-element-editor/data-stream-editor/hooks/useDataStreamDataPills.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import getDataPillsFromProperties from '@/pages/platform/workflow-editor/utils/g
44
import getOutputSchemaFromWorkflowNodeOutput from '@/pages/platform/workflow-editor/utils/getOutputSchemaFromWorkflowNodeOutput';
55
import {useGetPreviousWorkflowNodeOutputsQuery} from '@/shared/queries/platform/workflowNodeOutputs.queries';
66
import {useEnvironmentStore} from '@/shared/stores/useEnvironmentStore';
7-
import {ComponentPropertiesType, DataPillType} from '@/shared/types';
7+
import {ComponentPropertiesType} from '@/shared/types';
88
import {useEffect, useMemo} from 'react';
99
import {useShallow} from 'zustand/shallow';
1010

@@ -78,11 +78,12 @@ export default function useDataStreamDataPills() {
7878

7979
const dataPills = getDataPillsFromProperties(componentProperties, filteredNodeNames).flat(Infinity);
8080

81-
const workflowInputDataPills = workflow.inputs?.map((input) => ({
82-
id: input.name,
83-
nodeName: input.name,
84-
value: input.name,
85-
})) || [];
81+
const workflowInputDataPills =
82+
workflow.inputs?.map((input) => ({
83+
id: input.name,
84+
nodeName: input.name,
85+
value: input.name,
86+
})) || [];
8687

8788
return [...dataPills, ...workflowInputDataPills];
8889
}, [componentDefinitions, taskDispatcherDefinitions, workflow.inputs, workflowNodeOutputs]);

client/src/pages/platform/workflow-editor/components/hooks/useWorkflowNodeDetailsPanel.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -845,11 +845,12 @@ export default function useWorkflowNodeDetailsPanel({
845845

846846
const dataPills = getDataPillsFromProperties(componentProperties, filteredNodeNames);
847847

848-
const workflowInputDataPills: Array<DataPillType> = workflow.inputs?.map((input) => ({
849-
id: input.name,
850-
nodeName: input.name,
851-
value: input.name,
852-
})) || [];
848+
const workflowInputDataPills: Array<DataPillType> =
849+
workflow.inputs?.map((input) => ({
850+
id: input.name,
851+
nodeName: input.name,
852+
value: input.name,
853+
})) || [];
853854

854855
return [...dataPills.flat(Infinity), ...workflowInputDataPills];
855856
}, [

0 commit comments

Comments
 (0)