mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01: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:
parent
7c80f8e842
commit
af28e9b79e
1 changed files with 7 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue