Skip to content

Commit

Permalink
fix: the bug of workspace update without name (#1078)
Browse files Browse the repository at this point in the history
  • Loading branch information
healthjyk committed Apr 29, 2024
1 parent 2d9c0c9 commit 92243b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/cmd/workspace/update/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ func (o *Options) Run() error {
}
}

if o.Name == "" {
o.Name, err = storage.GetCurrent()
if err != nil {
return err
}
}
ws, err := util.GetValidWorkspaceFromFile(o.FilePath, o.Name)
if err != nil {
return err
Expand Down

0 comments on commit 92243b5

Please sign in to comment.