Commit 6adc54b
committed
Default the child element of Localized to null
If no child element is provided and <Localized /> tries to return
the children as a fallback, undefined is returned from the
component. This causes a React error, which is difficult to
track down. Instead, default the child element to null, which is
a valid return value for a React component.1 parent ab37e18 commit 6adc54b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
0 commit comments