Skip to content

Commit

Permalink
fix: updateCellId api bug (#3816)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackyChen02 committed Jul 28, 2023
1 parent eb3d006 commit dbd0219
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/x6/src/model/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ export class Model extends Basecoat<Model.EventArgs> {
}

updateCellId(cell: Cell, newId: string) {
if (cell.id === newId) return
this.startBatch('update', { id: newId })
cell.prop('id', newId)
const newCell = cell.clone({ keepId: true })
Expand Down

0 comments on commit dbd0219

Please sign in to comment.