This commit is contained in:
+3
-2
@@ -24,9 +24,10 @@ type Project struct {
|
||||
|
||||
func (project *Project) Update(update ProjectUpdate) {
|
||||
if update.GroupID != nil {
|
||||
project.GroupID = update.GroupID
|
||||
if *project.GroupID == "" {
|
||||
if *update.GroupID == "" {
|
||||
project.GroupID = nil
|
||||
} else {
|
||||
project.GroupID = update.GroupID
|
||||
}
|
||||
}
|
||||
if update.Name != nil {
|
||||
|
||||
Reference in New Issue
Block a user