mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Fixed mirroring database display view https://github.com/siyuan-note/siyuan/issues/15279
This commit is contained in:
parent
5fc90d284c
commit
3ff2829c45
1 changed files with 9 additions and 1 deletions
|
|
@ -1176,7 +1176,15 @@ func (tx *Transaction) doInsert(operation *Operation) (ret *TxErr) {
|
|||
v := attrView.GetView(attrView.ViewID)
|
||||
if nil != v {
|
||||
insertedNode.AttributeViewType = string(v.LayoutType)
|
||||
insertedNode.SetIALAttr(av.NodeAttrView, v.ID)
|
||||
attrs := parse.IAL2Map(insertedNode.KramdownIAL)
|
||||
if "" == attrs[av.NodeAttrView] {
|
||||
attrs[av.NodeAttrView] = v.ID
|
||||
err = setNodeAttrs(insertedNode, tree, attrs)
|
||||
if err != nil {
|
||||
logging.LogWarnf("set node [%s] attrs failed: %s", operation.BlockID, err)
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue