mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: relation hotfix (#4837)
This commit is contained in:
parent
88d14e7bde
commit
270d1c68b2
@ -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())
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user