Skip to content

Commit

Permalink
refresh sheet asynchronous fix (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
smariel committed Dec 12, 2020
1 parent cc258cc commit 5ffe3e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/class.PTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -1597,8 +1597,8 @@ class PTree {
});

// refresh the sheet to sync with
$('#bt_refresh_sheet').click(() => {
this.reloadSheet();
$('#bt_refresh_sheet').click(async () => {
await this.reloadSheet();
this.tree.refreshConsumptions(null, this.usersheet.sheet);
this.canvas.refresh();
this.setUnsaved();
Expand Down

0 comments on commit 5ffe3e3

Please sign in to comment.