🎨 Database table view supports inserting columns in the middle https://github.com/siyuan-note/siyuan/issues/9993

This commit is contained in:
Daniel 2023-12-29 09:12:20 +08:00
parent 76433c0bc0
commit 319646b9df
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -1883,11 +1883,6 @@ func addAttributeViewColumn(operation *Operation) (err error) {
for _, view := range attrView.Views {
switch view.LayoutType {
case av.LayoutTypeTable:
if "" == operation.PreviousID {
view.Table.Columns = append([]*av.ViewTableColumn{{ID: key.ID}}, view.Table.Columns...)
break
}
added := false
for i, column := range view.Table.Columns {
if column.ID == operation.PreviousID {