feat: update kanban demo (#2008)

This commit is contained in:
Nathan.fooo
2023-03-17 11:01:14 +08:00
committed by GitHub
parent 0630dc10b7
commit 1dbfd838ef
7 changed files with 59 additions and 16 deletions

View File

@ -115,6 +115,8 @@ pub fn move_group_row(
}
// Update the corresponding row's cell content.
// If the from_index is none which means the row is not belong to this group before and
// it is moved from other groups.
if from_index.is_none() {
let cell_rev = make_inserted_cell_rev(&group.id, field_rev);
if let Some(cell_rev) = cell_rev {
@ -126,7 +128,6 @@ pub fn move_group_row(
row_changeset
.cell_by_field_id
.insert(field_rev.id.clone(), cell_rev);
changeset.updated_rows.push(RowPB::from(*row_rev));
}
}
}