Skip to content

Commit 0de30bc

Browse files
committed
Fix a typo. Change 'filter' to 'map' in the text
1 parent b03aa75 commit 0de30bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/2/en/part2e.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,9 @@ notesToShow = notes
410410
notesToShow.map(note => ...)
411411
```
412412
413-
and this blows up the app since we can not call method _filter_ of the value _null_.
413+
and this blows up the app since we can not call method _map_ of the value _null_.
414414
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.
415+
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.
416416
417417
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.
418418

0 commit comments

Comments
 (0)