🎨 Update av

This commit is contained in:
Daniel 2023-06-10 17:55:59 +08:00
parent 6b3e0e7a35
commit 317f52c8cb
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -180,7 +180,7 @@ func addAttributeViewColumn(name string, typ string, avID string) (err error) {
colType := av.ColumnType(typ)
switch colType {
case av.ColumnTypeText:
col := &av.Column{ID: "av" + ast.NewNodeID(), Name: name, Type: colType}
col := &av.Column{ID: ast.NewNodeID(), Name: name, Type: colType}
attrView.Columns = append(attrView.Columns, col)
for _, row := range attrView.Rows {
row.Cells = append(row.Cells, av.NewCell(colType))