mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
This commit is contained in:
parent
3c52bf63a9
commit
5b46889de7
3 changed files with 11 additions and 5 deletions
|
|
@ -124,6 +124,13 @@ func addAttributeViewBlock(blockID, avID string, tree *parse.Tree) (err error) {
|
|||
return
|
||||
}
|
||||
|
||||
// 不允许重复添加相同的块到属性视图中
|
||||
for _, row := range attrView.Rows {
|
||||
if row[0].Value() == blockID {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
var row []av.Cell
|
||||
row = append(row, av.NewCellBlock(block.ID))
|
||||
if 1 < len(attrView.Columns) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue