mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 Improve database editing https://github.com/siyuan-note/siyuan/issues/12343
This commit is contained in:
parent
11f5d29c29
commit
886f2d0ce7
1 changed files with 3 additions and 1 deletions
|
|
@ -3037,7 +3037,9 @@ func UpdateAttributeViewCell(tx *Transaction, avID, keyID, rowID, cellID string,
|
||||||
if !val.IsDetached { // 现在绑定了块
|
if !val.IsDetached { // 现在绑定了块
|
||||||
// 将游离行绑定到新建的块上
|
// 将游离行绑定到新建的块上
|
||||||
bindBlockAv(tx, avID, rowID)
|
bindBlockAv(tx, avID, rowID)
|
||||||
val.BlockID = val.Block.ID
|
if nil != val.Block {
|
||||||
|
val.BlockID = val.Block.ID
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// 之前绑定了块
|
// 之前绑定了块
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue