1
0

Fix resetting list, label & namespace colors

This commit is contained in:
kolaente
2020-06-15 11:32:07 +02:00
parent 47d7e713af
commit 24c1098736
3 changed files with 10 additions and 7 deletions

View File

@ -448,13 +448,11 @@ func (n *Namespace) Update() (err error) {
colsToUpdate := []string{
"name",
"is_archived",
"hex_color",
}
if n.Description != "" {
colsToUpdate = append(colsToUpdate, "description")
}
if n.HexColor != "" {
colsToUpdate = append(colsToUpdate, "hex_color")
}
// Do the actual update
_, err = x.