fix: relation hotfix (#4837)

This commit is contained in:
Richard Shiue 2024-03-07 11:37:51 +08:00 committed by GitHub
parent 88d14e7bde
commit 270d1c68b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,7 +60,7 @@ impl CellDataChangeset for RelationTypeOption {
let cell_data: RelationCellData = cell.unwrap().as_ref().into();
let mut row_ids = cell_data.row_ids.clone();
for inserted in changeset.inserted_row_ids.iter() {
if row_ids.iter().any(|row_id| row_id == inserted) {
if !row_ids.iter().any(|row_id| row_id == inserted) {
row_ids.push(inserted.clone())
}
}