Skip to content

Commit

Permalink
Fix variable dropdown title
Browse files Browse the repository at this point in the history
  • Loading branch information
thomtrp committed Nov 22, 2024
1 parent 5d0a2c6 commit 0bf429f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export const RightDrawerWorkflowSelectTriggerTypeContent = ({
onClick={async () => {
await updateTrigger(
getTriggerDefaultDefinition({
name: action.name,
type: action.type,
activeObjectMetadataItems,
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ export const useAvailableVariablesInWorkflowStep = (): StepOutputSchema[] => {
) {
result.push({
id: 'trigger',
name: getTriggerStepName(workflow.currentVersion.trigger),
name: isDefined(workflow.currentVersion.trigger.name)
? workflow.currentVersion.trigger.name
: getTriggerStepName(workflow.currentVersion.trigger),
outputSchema: workflow.currentVersion.trigger.settings.outputSchema,
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ describe('generateWorkflowDiagram', () => {

expect(result.nodes[0]).toMatchObject({
data: {
label: 'Company is Created',
nodeType: 'trigger',
},
});
Expand Down Expand Up @@ -87,7 +86,7 @@ describe('generateWorkflowDiagram', () => {
expect(stepNodes[index].data).toEqual({
nodeType: 'action',
actionType: 'CODE',
label: step.name,
name: step.name,
});
}
});
Expand Down

0 comments on commit 0bf429f

Please sign in to comment.