mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🎨 Database block support specified view https://github.com/siyuan-note/siyuan/issues/10443
This commit is contained in:
parent
30db8f4eb0
commit
4545cb11fe
1 changed files with 2 additions and 2 deletions
|
|
@ -1380,7 +1380,7 @@ func (tx *Transaction) doRemoveAttrViewView(operation *Operation) (ret *TxErr) {
|
|||
attrs := parse.IAL2Map(node.KramdownIAL)
|
||||
blockViewID := attrs[av.NodeAttrView]
|
||||
if blockViewID == viewID {
|
||||
delete(attrs, av.NodeAttrView)
|
||||
attrs[av.NodeAttrView] = attrView.ViewID
|
||||
oldAttrs, e := setNodeAttrs0(node, attrs)
|
||||
if nil != e {
|
||||
logging.LogErrorf("set node attrs failed: %s", e)
|
||||
|
|
@ -1701,7 +1701,7 @@ func setAttributeViewPageSize(operation *Operation) (err error) {
|
|||
return
|
||||
}
|
||||
|
||||
view, err := attrView.GetCurrentView(operation.ID)
|
||||
view, err := getAttrViewViewByBlockID(attrView, operation.BlockID)
|
||||
if nil != err {
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue