mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 Improve the database rollup and asset field filtering https://github.com/siyuan-note/siyuan/issues/16126
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
8058e906a2
commit
163c91ffbe
1 changed files with 2 additions and 2 deletions
|
|
@ -393,7 +393,7 @@ func (value *Value) Filter(filter *ViewFilter, attrView *AttributeView, itemID s
|
|||
case FilterQuantifierNone:
|
||||
if FilterOperatorIsEmpty == filter.Operator {
|
||||
if 1 > len(value.MAsset) {
|
||||
return true
|
||||
return false
|
||||
}
|
||||
|
||||
for _, asset := range value.MAsset {
|
||||
|
|
@ -404,7 +404,7 @@ func (value *Value) Filter(filter *ViewFilter, attrView *AttributeView, itemID s
|
|||
return true
|
||||
} else if FilterOperatorIsNotEmpty == filter.Operator {
|
||||
if 1 > len(value.MAsset) {
|
||||
return false
|
||||
return true
|
||||
}
|
||||
|
||||
for _, asset := range value.MAsset {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue