mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 08:30:42 +02:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
cbcb047f0f
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