We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b03aa75 commit 0de30bcCopy full SHA for 0de30bc
src/content/2/en/part2e.md
@@ -410,9 +410,9 @@ notesToShow = notes
410
notesToShow.map(note => ...)
411
```
412
413
-and this blows up the app since we can not call method _filter_ of the value _null_.
+and this blows up the app since we can not call method _map_ of the value _null_.
414
415
-When we set _notes_ to be initially an empty array, there is no error since it is allowed to call _filter_ to an empty array.
+When we set _notes_ to be initially an empty array, there is no error since it is allowed to call _map_ to an empty array.
416
417
So, the initialization of the state "masked" the problem that is caused by the fact that the data is not yet fetched from the backend.
418
0 commit comments