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
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 3 deletions

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")
}