From 9fdbeb753871bd45636588e694a019bdd6a43dee Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Wed, 4 Mar 2020 10:45:34 +0000 Subject: [PATCH] bugfix: all_contacts hardcoded index name --- .../materialdesign-components/src/Templates/indexDatatable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/materialdesign-components/src/Templates/indexDatatable.js b/packages/materialdesign-components/src/Templates/indexDatatable.js index 4042ec18c0..3ae9da003a 100644 --- a/packages/materialdesign-components/src/Templates/indexDatatable.js +++ b/packages/materialdesign-components/src/Templates/indexDatatable.js @@ -37,8 +37,8 @@ const tableProps = (index, indexSchema) => ({ { "##eventHandlerType": "List Records", parameters: { - indexKey: "/all_contacts", - statePath: "all_contacts", + indexKey:index.nodeKey(), + statePath: index.name, }, }, ],