This commit is contained in:
Daniel 2025-08-11 21:58:33 +08:00
parent e9afbb6931
commit bbe2001366
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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