🎨 Database table view cell value adds createdAt and updatedAt fields https://github.com/siyuan-note/siyuan/issues/10492

Adding rows after setting the sort field in the database table view no longer fills in the default value https://github.com/siyuan-note/siyuan/issues/10486
This commit is contained in:
Daniel 2024-03-03 16:12:44 +08:00
parent 49031aaca7
commit 01744ae69e
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 71 additions and 72 deletions

View file

@ -84,12 +84,20 @@ const (
func (value *Value) Compare(other *Value) int {
if nil == value {
return -1
return 1
}
if nil == other {
return -1
}
if !value.IsEdited() {
return 1
}
if !other.IsEdited() {
return -1
}
switch value.Type {
case KeyTypeBlock:
if nil != value.Block && nil != other.Block {