mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 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:
@@ -518,6 +518,13 @@ func removeAttributeViewBlock(operation *Operation) (err error) {
|
||||
|
||||
for _, blockID := range operation.SrcIDs {
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user