From eed864b7704d41e11c6cb642ae4bf99dfa0b3545 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Fri, 21 Feb 2020 23:02:01 +0000 Subject: [PATCH] component templates: store binding renamed to state --- .../materialdesign-components/src/Templates/indexDatatable.js | 2 +- packages/materialdesign-components/src/Templates/recordForm.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/materialdesign-components/src/Templates/indexDatatable.js b/packages/materialdesign-components/src/Templates/indexDatatable.js index 8c662adf37..ac0cfe79ea 100644 --- a/packages/materialdesign-components/src/Templates/indexDatatable.js +++ b/packages/materialdesign-components/src/Templates/indexDatatable.js @@ -65,7 +65,7 @@ const dataCells = (index, indexSchema) => })) const dataItem = index => `${index.name}_item` -const dataCollection = index => `store.${index.name}` +const dataCollection = index => `state.${index.name}` const rowCode = index => ` if (!${dataCollection(index)}) return diff --git a/packages/materialdesign-components/src/Templates/recordForm.js b/packages/materialdesign-components/src/Templates/recordForm.js index 56a6bfb0ac..afb33b19e5 100644 --- a/packages/materialdesign-components/src/Templates/recordForm.js +++ b/packages/materialdesign-components/src/Templates/recordForm.js @@ -44,7 +44,7 @@ const checkbox = (record, f) => ({ checked: fieldValueBinding(record, f), }) -const fieldValueBinding = (record, f) => `store.${record.name}.${f.name}` +const fieldValueBinding = (record, f) => `state.${record.name}.${f.name}` const capitalize = s => s.charAt(0).toUpperCase() + s.slice(1)