mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-04 05:59:54 +08:00
🎨 Remove av block also remove node attr https://github.com/siyuan-note/siyuan/issues/9091#issuecomment-1709824006
This commit is contained in:
parent
02776afc87
commit
10cba1dc98
@ -512,6 +512,7 @@ func (tx *Transaction) removeAttributeViewBlock(operation *Operation) (err error
|
|||||||
if !gulu.Str.Contains(values.BlockID, operation.SrcIDs) {
|
if !gulu.Str.Contains(values.BlockID, operation.SrcIDs) {
|
||||||
tmp = append(tmp, keyValues.Values[i])
|
tmp = append(tmp, keyValues.Values[i])
|
||||||
} else {
|
} else {
|
||||||
|
// Remove av block also remove node attr https://github.com/siyuan-note/siyuan/issues/9091#issuecomment-1709824006
|
||||||
if bt := treenode.GetBlockTree(values.BlockID); nil != bt {
|
if bt := treenode.GetBlockTree(values.BlockID); nil != bt {
|
||||||
tree := trees[bt.RootID]
|
tree := trees[bt.RootID]
|
||||||
if nil == tree {
|
if nil == tree {
|
||||||
|
Loading…
Reference in New Issue
Block a user