浏览代码

:art: Improve processing when a database-bound block changes its type https://github.com/siyuan-note/siyuan/issues/12152

Daniel 11 月之前
父节点
当前提交
efb3c5dd36
共有 1 个文件被更改,包括 2 次插入6 次删除
  1. 2 6
      kernel/model/transaction.go

+ 2 - 6
kernel/model/transaction.go

@@ -772,12 +772,8 @@ func (tx *Transaction) doDelete(operation *Operation) (ret *TxErr) {
 		return
 		return
 	}
 	}
 
 
-	go func() {
-		time.Sleep(50 * time.Millisecond)
-		WaitForWritingFiles()
-		syncDelete2AttributeView(node)
-		syncDelete2Block(node)
-	}()
+	syncDelete2AttributeView(node)
+	syncDelete2Block(node)
 	return
 	return
 }
 }