♻️ Improve av

This commit is contained in:
Daniel 2025-07-01 13:28:50 +08:00
parent 5f57be269b
commit 46290706b5
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 2 additions and 2 deletions

View file

@ -1229,7 +1229,7 @@ func renderAttributeView(attrView *av.AttributeView, viewID, query string, page,
}
// 做一些数据兼容和订正处理
checkViewInstance(attrView, view)
checkAttrView(attrView, view)
upgradeAttributeViewSpec(attrView)
viewable = sql.RenderView(view, attrView, query)

View file

@ -23,7 +23,7 @@ import (
"github.com/siyuan-note/siyuan/kernel/treenode"
)
func checkViewInstance(attrView *av.AttributeView, view *av.View) {
func checkAttrView(attrView *av.AttributeView, view *av.View) {
// 字段删除以后需要删除设置的过滤和排序
tmpFilters := []*av.ViewFilter{}
for _, f := range view.Filters {