mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-07 01:08:49 +01:00
♻️ Improve av
This commit is contained in:
parent
5f57be269b
commit
46290706b5
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue