Skip to content

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

:art: Improve av https://github.com/siyuan-note/siyuan/issues/15540

Danielbbe200136684
diff --git a/kernel/av/filter.go b/kernel/av/filter.go
index 9f190787f6..65ef4330f2 100644
--- a/kernel/av/filter.go
+++ b/kernel/av/filter.go
@@ -853,6 +853,11 @@ func (filter *ViewFilter) GetAffectValue(key *Key, addingBlockID string) (ret *V
}
}
+ if FilterOperatorIsNotEmpty == filter.Operator {
+ // 在过滤非空值的情况下,不设置默认值 https://github.com/siyuan-note/siyuan/issues/15540
+ return nil
+ }
+
ret = filter.Value.Clone()
ret.ID = ast.NewNodeID()
ret.KeyID = key.ID