🎨 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 11:01:32 +08:00
parent 03414a4e9e
commit 49031aaca7
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -1728,6 +1728,10 @@ func addAttributeViewBlock(avID, previousBlockID, blockID string, isDetached boo
continue
}
if av.KeyTypeRollup == cell.ValueType || av.KeyTypeRelation == cell.ValueType || av.KeyTypeCreated == cell.ValueType || av.KeyTypeUpdated == cell.ValueType || av.KeyTypeTemplate == cell.ValueType {
continue
}
newValue := cell.Value.Clone()
newValue.ID = ast.NewNodeID()
newValue.BlockID = blockID