Skip to content

Commit e92a929

Browse files
Merge pull request #2478 from piotrd/fixes/2327
fix(common.js): "Cannot read property 'params' of undefined" errors Closes #2327
2 parents 41acad8 + e05ff5a commit e92a929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function inheritParams(currentParams, newParams, $current, $to) {
9797
var parents = ancestors($current, $to), parentParams, inherited = {}, inheritList = [];
9898

9999
for (var i in parents) {
100-
if (!parents[i].params) continue;
100+
if (!parents[i] || !parents[i].params) continue;
101101
parentParams = objectKeys(parents[i].params);
102102
if (!parentParams.length) continue;
103103

0 commit comments

Comments
 (0)