This commit is contained in:
Liang Ding 2023-03-02 14:48:32 +08:00
parent 86fbb759ed
commit 90044e1f26
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -46,10 +46,11 @@ func AddBlockToAttributeView(blockID, avID string) (err error) {
return
}
attrs := parse.IAL2Map(node.KramdownIAL)
var row []av.Cell
row = append(row, av.NewCellBlock(block.ID))
if 1 < len(attrView.Columns) {
attrs := parse.IAL2Map(node.KramdownIAL)
for _, col := range attrView.Columns[1:] {
colName := col.Name()
attrs[colName] = ""