Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #107 from geta6/master
Browse files Browse the repository at this point in the history
Fix "nav.params is not an object" error
  • Loading branch information
redonkulus committed Dec 8, 2015
2 parents cfebbfa + dafdb58 commit 060565d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/handleHistory.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ function createComponent(Component, opts) {
componentDidUpdate: function (prevProps, prevState) {
debug('component did update', prevState, this.props);

var nav = this.props.currentNavigate;
var navType = (nav && nav.type) || TYPE_DEFAULT;
var nav = this.props.currentNavigate || {};
var navType = nav.type || TYPE_DEFAULT;
var navParams = nav.params || {};
var historyState;

Expand Down

3 comments on commit 060565d

@andersonba
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bump version 👍

@redonkulus
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andersonba done, published in 0.4.1

@andersonba
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @redonkulus

Please sign in to comment.