🎨 Reduce the delay in adding rows in database table view https://github.com/siyuan-note/siyuan/issues/10082
This commit is contained in:
parent
9ede4c7361
commit
4b55a9623c
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue