🎨 Add multi-select type column to Attribute View https://github.com/siyuan-note/siyuan/issues/8695

This commit is contained in:
Daniel 2023-07-10 11:26:41 +08:00
parent 801b06117a
commit 96e7044baf
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017

View File

@ -396,20 +396,20 @@ func removeAttributeViewColumnOption(operation *Operation) (err error) {
colIndex = i
for _, opt := range col.Options {
for j, opt := range col.Options {
if opt.Name != optName {
continue
}
col.Options = append(col.Options[:i], col.Options[i+1:]...)
col.Options = append(col.Options[:j], col.Options[j+1:]...)
break
}
break
}
for _, row := range attrView.Rows {
for k, cell := range row.Cells {
if colIndex != k {
for i, cell := range row.Cells {
if colIndex != i {
continue
}