Skip to content

Commit

Permalink
fix: Fixed issue where create/edit environments API was getting calle…
Browse files Browse the repository at this point in the history
…d twice (#4191)

Signed-off-by: Hrishav <hrishav.kumar@harness.io>
  • Loading branch information
hrishavjha committed Sep 28, 2023
1 parent 64f0a9d commit e3f6868
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,7 @@ export default function CreateEnvironment({
variation={ButtonVariation.SECONDARY}
text={getString('cancel')}
/>
<Button
type="submit"
variation={ButtonVariation.PRIMARY}
text={getString('save')}
onClick={() => formikProps.handleSubmit()}
/>
<Button type="submit" variation={ButtonVariation.PRIMARY} text={getString('save')} />
</Layout.Horizontal>
</Layout.Vertical>
</Form>
Expand Down

0 comments on commit e3f6868

Please sign in to comment.