Skip to content

Commit

Permalink
chore : fix the prefilled field when flag value is passed (#215)
Browse files Browse the repository at this point in the history
Signed-off-by: Harkirat Singh <[email protected]>
  • Loading branch information
harkiratsm authored Mar 15, 2024
1 parent c52f5a9 commit ed65fda
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/cmd/profile/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ var profileAddCmd = &cobra.Command{

if profileAddView.ProfileName != "" && profileAddView.ApiUrl != "" {
_, err = addProfile(profileAddView, c, true)
}

if profileNameFlag == "" || apiUrlFlag == "" {
_, err = CreateProfile(c, nil, true)
} else {
_, err = CreateProfile(c, &profileAddView, true)
}

if err != nil {
Expand Down

0 comments on commit ed65fda

Please sign in to comment.