Optimize rendering performance of databases containing relation fields https://github.com/siyuan-note/siyuan/issues/11249

This commit is contained in:
Daniel
2024-05-10 23:37:27 +08:00
parent 002173044f
commit 2ee4533304

View File

@@ -1647,7 +1647,7 @@ func updateAttributeViewColRelation(operation *Operation) (err error) {
}
av.UpsertAvBackRel(srcAv.ID, destAv.ID)
if operation.IsTwoWay {
if operation.IsTwoWay && !isSameAv {
av.UpsertAvBackRel(destAv.ID, srcAv.ID)
}
return