Skip to content

Commit

Permalink
fix(ui): type issue, vars cannot be optional
Browse files Browse the repository at this point in the history
Co-authored-by: Mayursinh Sarvaiya <[email protected]>
Signed-off-by: Hidde Beydals <[email protected]>
  • Loading branch information
hiddeco and Marvin9 committed Dec 16, 2024
1 parent 97b63f4 commit 4fc9dc0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions ui/src/features/stage/create-stage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ export const CreateStage = ({
promotionWizardStepsState.state?.map((step) => ({
uses: step?.identifier,
as: step?.as,
config: step?.state
config: step?.state,
vars: []
}))
);
setValue('value', unmarshalled);
Expand Down Expand Up @@ -174,7 +175,8 @@ export const CreateStage = ({
promotionWizardStepsState.state?.map((step) => ({
uses: step?.identifier,
as: step?.as,
config: step?.state
config: step?.state,
vars: []
}))
)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ const stateToYAML = (state: RunnerWithConfiguration[]): string => {
promotionSteps.push({
uses: step.identifier,
config: step.state,
as: step.as
as: step.as,
vars: []
});
}

Expand Down

0 comments on commit 4fc9dc0

Please sign in to comment.