diff --git a/force-app/main/default/lwc/viewToRefresh/viewToRefresh.js b/force-app/main/default/lwc/viewToRefresh/viewToRefresh.js index f96735118..121358d31 100644 --- a/force-app/main/default/lwc/viewToRefresh/viewToRefresh.js +++ b/force-app/main/default/lwc/viewToRefresh/viewToRefresh.js @@ -23,7 +23,7 @@ export default class ViewToRefresh extends LightningElement { unregisterRefreshHandler(this.refreshHandlerID); } - refreshHandler() { - refreshApex(this.numOfAccounts); + async refreshHandler() { + await refreshApex(this.numOfAccounts); } }