From 96e7044bafbd1ac5ca7cb6c3361fd53204b1dc57 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 10 Jul 2023 11:26:41 +0800 Subject: [PATCH] :art: Add multi-select type column to Attribute View https://github.com/siyuan-note/siyuan/issues/8695 --- kernel/model/attribute_view.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go index 7a875cf31..4c059fd39 100644 --- a/kernel/model/attribute_view.go +++ b/kernel/model/attribute_view.go @@ -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 }