component templates: store binding renamed to state

This commit is contained in:
Michael Shanks 2020-02-21 23:02:01 +00:00
parent d0f3eeca1b
commit eed864b770
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

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