From 2f39c2f1bcb019b59724c24f6212f5f309db6ae0 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Thu, 12 Dec 2024 11:22:58 +0800 Subject: [PATCH] :art: Improve update database cell option https://github.com/siyuan-note/siyuan/issues/13439 --- kernel/model/attribute_view.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go index f1657231df1..84cf00413d3 100644 --- a/kernel/model/attribute_view.go +++ b/kernel/model/attribute_view.go @@ -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)