mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-21 15:56:10 +01:00
🎨 Update database
This commit is contained in:
parent
cd8d94ae8b
commit
f4258c706d
1 changed files with 6 additions and 0 deletions
|
|
@ -645,6 +645,12 @@ func setAttributeViewColumnCalc(operation *Operation) (err error) {
|
|||
func (tx *Transaction) doInsertAttrViewBlock(operation *Operation) (ret *TxErr) {
|
||||
for _, id := range operation.SrcIDs {
|
||||
tree, err := tx.loadTree(id)
|
||||
if nil == tree {
|
||||
operation.IsDetached = true
|
||||
} else {
|
||||
operation.IsDetached = false
|
||||
}
|
||||
|
||||
if nil != err && !operation.IsDetached {
|
||||
logging.LogErrorf("load tree [%s] failed: %s", id, err)
|
||||
return &TxErr{code: TxErrCodeBlockNotFound, id: id, msg: err.Error()}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue