Skip to content

Commit

Permalink
Use state instead of this in workflowStepStore
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Oct 16, 2023
1 parent 2a7587e commit d82b460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/stores/workflowStepStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export const useWorkflowStepStore = (workflowId: string) => {
};
},
getStepExtraInputs(state: State) {
return (stepId: number) => this.stepExtraInputs[stepId] || [];
return (stepId: number) => state.stepExtraInputs[stepId] || [];
},
getStepIndex(state: State) {
return Math.max(...Object.values(state.steps).map((step) => step.id), state.stepIndex);
Expand Down

0 comments on commit d82b460

Please sign in to comment.