Skip to content

Commit

Permalink
refactor(forms): switch to tagged template based operators
Browse files Browse the repository at this point in the history
  • Loading branch information
henri-hulski committed Oct 24, 2016
1 parent 1048cfb commit 0d29f59
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/cerebral-forms/src/chains/changeField.js
@@ -1,8 +1,7 @@
import {set, state, input} from 'cerebral/operators'
import validateField from '../factories/validateField'

export default [
function updateValue ({input, state}) {
state.set(`${input.field}.value`, input.value)
},
set(state`${input`field`}.value`, input`value`),
validateField()
]

0 comments on commit 0d29f59

Please sign in to comment.