Skip to content

Commit bda3087

Browse files
committed
Modify eachComponents to be able to handle routes defined with named components objects.
1 parent dff0b02 commit bda3087

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

modules/.ReduxAsyncConnect.js.swp

12 KB
Binary file not shown.

modules/ReduxAsyncConnect.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const { array, func, object, any } = React.PropTypes;
1616
function eachComponents(components, iterator) {
1717
for (let i = 0, l = components.length; i < l; i++) { // eslint-disable-line id-length
1818
if (typeof components[i] === 'object') {
19-
for (const key of components[i]) {
19+
for (let [key, value] of Object.entries(components[i])) {
2020
iterator(components[i][key], i, key);
2121
}
2222
} else {

0 commit comments

Comments
 (0)