An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Improve av option editing https://github.com/siyuan-note/siyuan/issues/11484
Daniel9048b9e52f7d
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.goindex bbbba9a4d6..32acba9738 100644--- a/kernel/model/attribute_view.go+++ b/kernel/model/attribute_view.go@@ -3461,13 +3461,16 @@ func updateAttributeViewColumnOption(operation *Operation) (err error) {data := operation.Data.(map[string]interface{})- oldName := data["oldName"].(string)- newName := data["newName"].(string)+ rename := false+ oldName := strings.TrimSpace(data["oldName"].(string))+ newName := strings.TrimSpace(data["newName"].(string))+ newDesc := strings.TrimSpace(data["newDesc"].(string))newColor := data["newColor"].(string)- newDesc := data["newDesc"].(string)found := falseif oldName != newName {+ rename = true+for _, opt := range key.Options {if newName == opt.Name { // 如果选项已经存在则直接使用found = true@@ -3507,7 +3510,7 @@ func updateAttributeViewColumnOption(operation *Operation) (err error) {break}}- if found {+ if found && rename {idx := -1for i, opt := range value.MSelect {if oldName == opt.Content {