Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-09-23 20:35:14 +08:00
parent 73869d7f69
commit 6d98e3b18a
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -542,7 +542,7 @@ func (value *Value) filter(other *Value, relativeDate, relativeDate2 *RelativeDa
}
}
case KeyTypeRelation:
if nil != value.Relation && nil != other && nil != other.Relation {
if nil != value.Relation && 0 < len(value.Relation.Contents) && nil != other && nil != other.Relation && 0 < len(other.Relation.Contents) {
return filterTextContent(operator, value.Relation.Contents[0].Block.Content, other.Relation.Contents[0].Block.Content)
}
}