Commit 574e2d1
committed
react-material: Fix oneOf renderer not clearing some primitive values
Replace isEmpty check with check against undefined because isEmpty always returns true
for boolean values, 0, empty strings and objects without props.
This could lead to errors when switching from any of these to an array and trying to add
elements there.1 parent 15831c3 commit 574e2d1
1 file changed
Lines changed: 1 addition & 2 deletions
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
101 | | - | |
| 100 | + | |
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
| |||
0 commit comments