diff --git a/packages/x6/src/graph/viewport-accessor.ts b/packages/x6/src/graph/viewport-accessor.ts index ffaa9014f0a..516862af576 100644 --- a/packages/x6/src/graph/viewport-accessor.ts +++ b/packages/x6/src/graph/viewport-accessor.ts @@ -7,7 +7,7 @@ export class ViewportAccessor extends BaseGraph { * Clears all cell states or the states for the hierarchy starting * at the given cell and validates the graph. */ - refresh(cell: Cell) { + refresh(cell?: Cell) { this.view.clear(cell, cell == null) this.view.validate() this.sizeDidChange()