1
0
Fork 0
mirror of synced 2024-07-07 23:35:49 +12:00

component templates: store binding renamed to state

This commit is contained in:
Michael Shanks 2020-02-21 23:02:01 +00:00
parent d7de2f1b0e
commit bb4a7d1f4a
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)