mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
This commit is contained in:
parent
bb52da5bbc
commit
f3bcfce4e1
1 changed files with 6 additions and 0 deletions
|
|
@ -601,6 +601,12 @@ func GetAttributeViewFilterSort(avID, blockID string) (filters []*av.ViewFilter,
|
|||
|
||||
filters = view.Filters
|
||||
sorts = view.Sorts
|
||||
if 1 > len(filters) {
|
||||
filters = []*av.ViewFilter{}
|
||||
}
|
||||
if 1 > len(sorts) {
|
||||
sorts = []*av.ViewSort{}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue