From ddebbbf1652ffaed8415f8f5299dc56ae4069152 Mon Sep 17 00:00:00 2001 From: manhntbkit Date: Wed, 6 Jul 2022 00:31:07 +0700 Subject: [PATCH] Update ContactDatatableController.js on handleAccountSelected: In Aura(AccountSelector) it passes "value" as a string like "0011j000000FLwoEAG" But in lwcAccountSelector it passed "value" as an json object {accountId: 'xx'}. So when you drag them together on the same page. it won't work. --- .../aura/ContactDatatable/ContactDatatableController.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils-recipes/main/default/aura/ContactDatatable/ContactDatatableController.js b/utils-recipes/main/default/aura/ContactDatatable/ContactDatatableController.js index 8433b0d..91f50d0 100644 --- a/utils-recipes/main/default/aura/ContactDatatable/ContactDatatableController.js +++ b/utils-recipes/main/default/aura/ContactDatatable/ContactDatatableController.js @@ -33,8 +33,9 @@ } }, handleAccountSelected: function (component, event, helper) { - const value = event.getParam('value'); - helper.loadContactTable(component, value); + let value = event.getParam('value'); + let accountId = (value.accountId)? value.accountId:value; + helper.loadContactTable(component, accountId); }, handleClearTable: function (component, event, helper) { component.set('v.tableData', null);