Skip to content

Commit

Permalink
fix: refresh with no arg means refreshing the whole graph
Browse files Browse the repository at this point in the history
  • Loading branch information
bubkoo committed Dec 24, 2019
1 parent 145cd98 commit 034ccf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/x6/src/graph/viewport-accessor.ts
Expand Up @@ -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()
Expand Down

0 comments on commit 034ccf2

Please sign in to comment.