Skip to content

Commit dfcff87

Browse files
authored
Fix issue with outdated comment. (transloadit#4192)
1 parent 0a97da3 commit dfcff87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/src/docs/core.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,9 +595,9 @@ uppy.setState({
595595
State in Uppy is considered to be immutable. When updating values, make sure not mutate them, but instead create copies. See [Redux docs](http://redux.js.org/docs/recipes/UsingObjectSpreadOperator.html) for more info on this. Here is an example that updates progress for a particular file in state:
596596

597597
```js
598-
// We use Object.assign({}, obj) to create a copy of `obj`.
598+
// We use the spread operator to create a copy of the files object.
599599
const updatedFiles = { ...uppy.getState().files }
600-
// We use Object.assign({}, obj, update) to create an altered copy of `obj`.
600+
// We use the spread operator to create a copy of the files object.
601601
const updatedFile = {
602602
...updatedFiles[fileID],
603603
progress: {

0 commit comments

Comments
 (0)