Fix setting a list identifier to empty

This commit is contained in:
kolaente 2020-05-16 13:13:11 +02:00
parent 5a86f44fc3
commit 8a01b20e1e
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -431,13 +431,11 @@ func CreateOrUpdateList(list *List) (err error) {
colsToUpdate := []string{
"title",
"is_archived",
"identifier",
}
if list.Description != "" {
colsToUpdate = append(colsToUpdate, "description")
}
if list.Identifier != "" {
colsToUpdate = append(colsToUpdate, "identifier")
}
if list.HexColor != "" {
colsToUpdate = append(colsToUpdate, "hex_color")
}