mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-04 14:52:41 +08:00
🎨 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
@ -1691,8 +1691,12 @@ func addAttributeViewBlock(blockID string, operation *Operation, tree *parse.Tre
|
|||||||
func GetLastSortRow(rows []*av.TableRow) *av.TableRow {
|
func GetLastSortRow(rows []*av.TableRow) *av.TableRow {
|
||||||
for i := len(rows) - 1; i >= 0; i-- {
|
for i := len(rows) - 1; i >= 0; i-- {
|
||||||
row := rows[i]
|
row := rows[i]
|
||||||
block := row.GetBlockValue()
|
blockVal := row.GetBlockValue()
|
||||||
if nil != block {
|
if nil != blockVal {
|
||||||
|
if nil != blockVal.Block && blockVal.Block.Created == blockVal.Block.Updated {
|
||||||
|
// 说明是刚刚创建的块,跳过
|
||||||
|
continue
|
||||||
|
}
|
||||||
return row
|
return row
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user