🐛 Database unbind block causes entry to be deleted Fix https://github.com/siyuan-note/siyuan/issues/11101

This commit is contained in:
Daniel 2024-04-21 17:52:08 +08:00
parent 428d6e189d
commit 1db8269b9f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -1339,6 +1339,7 @@ func unbindAttributeViewBlock(operation *Operation, tx *Transaction) (err error)
unbindBlockAv(tx, operation.AvID, value.BlockID)
}
value.BlockID = operation.NextID
value.IsDetached = true
if nil != value.Block {
value.Block.ID = operation.NextID
}