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);