mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🎨 Improve av https://github.com/siyuan-note/siyuan/issues/15659
This commit is contained in:
parent
91a9b27789
commit
fb9f0f9a35
1 changed files with 7 additions and 0 deletions
|
@ -51,6 +51,13 @@ func checkAttrView(attrView *av.AttributeView, view *av.View) {
|
|||
}
|
||||
view.Sorts = tmpSorts
|
||||
|
||||
// 字段删除以后需要删除设置的分组
|
||||
if nil != view.Group {
|
||||
if k, _ := attrView.GetKey(view.Group.Field); nil == k {
|
||||
view.Group = nil
|
||||
}
|
||||
}
|
||||
|
||||
// 订正视图类型
|
||||
for i, v := range attrView.Views {
|
||||
if av.LayoutTypeGallery == v.LayoutType && nil == v.Gallery {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue