Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Improve database editing https://github.com/siyuan-note/siyuan/issues/12343

Daniel886f2d0ce767
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index e36aa0cd1f..675682cbff 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -3037,7 +3037,9 @@ func UpdateAttributeViewCell(tx *Transaction, avID, keyID, rowID, cellID string,
if !val.IsDetached { // 现在绑定了块
// 将游离行绑定到新建的块上
bindBlockAv(tx, avID, rowID)
- val.BlockID = val.Block.ID
+ if nil != val.Block {
+ val.BlockID = val.Block.ID
+ }
}
} else {
// 之前绑定了块