There was an error while loading. Please reload this page.
1 parent 1909ab7 commit 8b4b3a5Copy full SHA for 8b4b3a5
1 file changed
commands/service_profile_init.go
@@ -90,8 +90,7 @@ func (s *arduinoCoreServerImpl) ProfileCreate(ctx context.Context, req *rpc.Prof
90
})
91
92
sk.Project.Profiles = append(sk.Project.Profiles, newProfile)
93
- // Set the profile as the default one if it's the only one
94
- if req.DefaultProfile || len(sk.Project.Profiles) == 1 {
+ if req.DefaultProfile {
95
sk.Project.DefaultProfile = newProfile.Name
96
}
97
0 commit comments