Skip to content

Commit

Permalink
🎨 Improve update database cell option #13439
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Dec 12, 2024
1 parent 0bcf137 commit 2f39c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/model/attribute_view.go
Original file line number Diff line number Diff line change
Expand Up @@ -3115,7 +3115,7 @@ func UpdateAttributeViewCell(tx *Transaction, avID, keyID, rowID string, valueDa
// 不存在的选项新建保存
color := valOpt.Color
if "" == color {
color = fmt.Sprintf("%d", 1+rand.Intn(15))
color = fmt.Sprintf("%d", 1+rand.Intn(14))
}
opt = &av.SelectOption{Name: valOpt.Content, Color: color}
key.Options = append(key.Options, opt)
Expand Down

0 comments on commit 2f39c2f

Please sign in to comment.