Skip to content

Commit

Permalink
fix: confirm viewitem exist (#3357)
Browse files Browse the repository at this point in the history
  • Loading branch information
NewByVector authored Mar 7, 2023
1 parent d72ff80 commit 8b1f661
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/x6/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/x6",
"version": "2.5.3",
"version": "2.5.4",
"description": "JavaScript diagramming library that uses SVG and HTML for rendering",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/x6/src/renderer/scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ export class Scheduler extends Disposable {
protected removeView(view: CellView) {
const cell = view.cell
const viewItem = this.willRemoveViews[cell.id]
if (view) {
if (viewItem && view) {
viewItem.view.remove()
delete this.willRemoveViews[cell.id]
this.graph.trigger('view:unmounted', { view })
Expand Down

0 comments on commit 8b1f661

Please sign in to comment.