mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
This commit is contained in:
parent
61b73e2c59
commit
dd973963b5
1 changed files with 1 additions and 1 deletions
|
|
@ -2835,7 +2835,7 @@ func replaceAttributeViewBlock(operation *Operation, tx *Transaction) (err error
|
||||||
// 检查是否已经存在绑定块,如果存在的话则重新绑定
|
// 检查是否已经存在绑定块,如果存在的话则重新绑定
|
||||||
for _, keyValues := range attrView.KeyValues {
|
for _, keyValues := range attrView.KeyValues {
|
||||||
for _, value := range keyValues.Values {
|
for _, value := range keyValues.Values {
|
||||||
if value.BlockID == operation.NextID {
|
if av.KeyTypeBlock == value.Type && nil != value.Block && value.BlockID == operation.NextID {
|
||||||
if !operation.IsDetached {
|
if !operation.IsDetached {
|
||||||
bindBlockAv0(tx, operation.AvID, node, tree)
|
bindBlockAv0(tx, operation.AvID, node, tree)
|
||||||
value.IsDetached = false
|
value.IsDetached = false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue