Fix setting a list identifier to empty
This commit is contained in:
parent
5a86f44fc3
commit
8a01b20e1e
1 changed files with 1 additions and 3 deletions
|
@ -431,13 +431,11 @@ func CreateOrUpdateList(list *List) (err error) {
|
||||||
colsToUpdate := []string{
|
colsToUpdate := []string{
|
||||||
"title",
|
"title",
|
||||||
"is_archived",
|
"is_archived",
|
||||||
|
"identifier",
|
||||||
}
|
}
|
||||||
if list.Description != "" {
|
if list.Description != "" {
|
||||||
colsToUpdate = append(colsToUpdate, "description")
|
colsToUpdate = append(colsToUpdate, "description")
|
||||||
}
|
}
|
||||||
if list.Identifier != "" {
|
|
||||||
colsToUpdate = append(colsToUpdate, "identifier")
|
|
||||||
}
|
|
||||||
if list.HexColor != "" {
|
if list.HexColor != "" {
|
||||||
colsToUpdate = append(colsToUpdate, "hex_color")
|
colsToUpdate = append(colsToUpdate, "hex_color")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue