🎨 Support modifying the primary key value of the binding block https://github.com/siyuan-note/siyuan/issues/9892
This commit is contained in:
parent
1f31a33977
commit
ea705bfbd5
1 changed files with 0 additions and 4 deletions
|
@ -1880,10 +1880,6 @@ func bindBlockAv(tx *Transaction, avID, blockID string) {
|
|||
attrs[av.NodeAttrNameAvs] = avID
|
||||
} else {
|
||||
avIDs := strings.Split(attrs[av.NodeAttrNameAvs], ",")
|
||||
if gulu.Str.Contains(avID, avIDs) {
|
||||
return
|
||||
}
|
||||
|
||||
avIDs = append(avIDs, avID)
|
||||
avIDs = gulu.Str.RemoveDuplicatedElem(avIDs)
|
||||
attrs[av.NodeAttrNameAvs] = strings.Join(avIDs, ",")
|
||||
|
|
Loading…
Add table
Reference in a new issue