Skip to content

Commit e15f2b0

Browse files
authored
Merge pull request #2 from dummerbd/patch-1
Fix typo in README
2 parents eccf9cd + e9ef534 commit e15f2b0

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,10 @@ const decorator = createDecorator(
3838
// Calculations:
3939
{
4040
field: 'foo', // when the value of foo changes...
41-
updates: [
42-
{
43-
// ...set field "doubleFoo" to twice the value of foo
44-
doubleFoo: (fooValue, allValues) => fooValue * 2
45-
}
46-
]
41+
updates: {
42+
// ...set field "doubleFoo" to twice the value of foo
43+
doubleFoo: (fooValue, allValues) => fooValue * 2
44+
}
4745
},
4846
{
4947
field: /items\[\d+\]/, // when a field matching this pattern changes...

0 commit comments

Comments
 (0)