🎨 Subdocuments created by the database are not displayed in the doc tree https://github.com/siyuan-note/siyuan/issues/9091

This commit is contained in:
Daniel 2023-09-05 16:27:59 +08:00
parent 7c80f8e842
commit af28e9b79e
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -518,6 +518,13 @@ func removeAttributeViewBlock(operation *Operation) (err error) {
for _, blockID := range operation.SrcIDs { for _, blockID := range operation.SrcIDs {
view.Table.RowIDs = gulu.Str.RemoveElem(view.Table.RowIDs, blockID) view.Table.RowIDs = gulu.Str.RemoveElem(view.Table.RowIDs, blockID)
if bt := treenode.GetBlockTree(blockID); nil != bt && "d" == bt.Type {
if tree, _ := loadTreeByBlockID(blockID); nil != tree {
tree.Root.RemoveIALAttr("custom-hidden")
writeJSONQueue(tree)
}
}
} }
err = av.SaveAttributeView(attrView) err = av.SaveAttributeView(attrView)