Skip to content

Commit 47b90dd

Browse files
committed
fix: default components to empty array
1 parent e909312 commit 47b90dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/helpers/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export function filterAndFlattenComponents(components) {
7676
* @param {Function} [data.filter] - filtering function
7777
* @return {Promise}
7878
*/
79-
export function loadAsyncConnect({ components, filter = () => true, ...rest }) {
79+
export function loadAsyncConnect({ components = [], filter = () => true, ...rest }) {
8080
const flattened = filterAndFlattenComponents(components);
8181

8282
if (flattened.length === 0) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redux-connect",
3-
"version": "2.4.0",
3+
"version": "2.4.1",
44
"description": "It allows you to request async data, store them in redux state and connect them to your react component.",
55
"main": "lib/index.js",
66
"repository": {

0 commit comments

Comments
 (0)