Skip to content

Commit eddfd4d

Browse files
stephenlacythymikee
authored andcommitted
fix: safe check for config command (#589)
1 parent eac98c0 commit eddfd4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/cli/src/commands/config/config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ function isValidRNDependency(config) {
77
return (
88
Object.keys(config.platforms).filter(key => Boolean(config.platforms[key]))
99
.length !== 0 ||
10-
Object.keys(config.hooks).length !== 0 ||
11-
config.assets.length !== 0 ||
12-
config.params.length !== 0
10+
(config.hooks && Object.keys(config.hooks).length !== 0) ||
11+
(config.assets && config.assets.length !== 0) ||
12+
(config.params && config.params.length !== 0)
1313
);
1414
}
1515

0 commit comments

Comments
 (0)