Skip to content

Commit

Permalink
Fix refresh recipe to listen to more than one event (#938)
Browse files Browse the repository at this point in the history
  • Loading branch information
albarivas authored May 17, 2024
1 parent 2db4fca commit 72fa42e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions force-app/main/default/lwc/viewToRefresh/viewToRefresh.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default class ViewToRefresh extends LightningElement {
unregisterRefreshHandler(this.refreshHandlerID);
}

refreshHandler() {
refreshApex(this.numOfAccounts);
async refreshHandler() {
await refreshApex(this.numOfAccounts);
}
}

0 comments on commit 72fa42e

Please sign in to comment.