mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
Was accidentally bootstrapping new layout twice (#1441)
This commit is contained in:
parent
878a7285ab
commit
6a3f72830b
@ -30,11 +30,6 @@ func (svc *WorkspaceService) CreateWorkspace(ctx context.Context) (string, error
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return "", fmt.Errorf("error creating workspace: %w", err)
|
return "", fmt.Errorf("error creating workspace: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
err = wcore.BootstrapNewWorkspaceLayout(ctx, newWS)
|
|
||||||
if err != nil {
|
|
||||||
return newWS.OID, fmt.Errorf("error bootstrapping new workspace layout: %w", err)
|
|
||||||
}
|
|
||||||
return newWS.OID, nil
|
return newWS.OID, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user