🎨 Reduce the delay in adding rows in database table view https://github.com/siyuan-note/siyuan/issues/10082

This commit is contained in:
Daniel 2024-01-08 12:18:52 +08:00
parent 9ede4c7361
commit 4b55a9623c
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -1691,8 +1691,12 @@ func addAttributeViewBlock(blockID string, operation *Operation, tree *parse.Tre
func GetLastSortRow(rows []*av.TableRow) *av.TableRow {
for i := len(rows) - 1; i >= 0; i-- {
row := rows[i]
block := row.GetBlockValue()
if nil != block {
blockVal := row.GetBlockValue()
if nil != blockVal {
if nil != blockVal.Block && blockVal.Block.Created == blockVal.Block.Updated {
// 说明是刚刚创建的块,跳过
continue
}
return row
}
}