Skip to content

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

:recycle: Refactor av data structure

Daniel19d316963739
diff --git a/kernel/model/transaction.go b/kernel/model/transaction.go
index 87cc11bf87..ef2d460a45 100644
--- a/kernel/model/transaction.go
+++ b/kernel/model/transaction.go
@@ -1219,6 +1219,10 @@ func refreshDynamicRefTexts(updatedDefNodes map[string]*ast.Node, updatedTrees m
changedAv := false
blockValues := attrView.GetBlockKeyValues()
+ if nil == blockValues {
+ continue
+ }
+
for _, blockValue := range blockValues.Values {
if blockValue.Block.ID == updatedDefNode.ID {
newContent := getNodeRefText(updatedDefNode)