From 72fa42eee472ac54720674ba0865f01acf37a374 Mon Sep 17 00:00:00 2001 From: Alba Rivas Date: Fri, 17 May 2024 14:58:02 +0200 Subject: [PATCH] Fix refresh recipe to listen to more than one event (#938) --- force-app/main/default/lwc/viewToRefresh/viewToRefresh.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }