Skip to content

Commit

Permalink
fix(views): state could be falsey value too
Browse files Browse the repository at this point in the history
  • Loading branch information
tunnckoCore committed Feb 9, 2017
1 parent d7657dd commit bc47df9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function gibon (routes, onRoute, onClick, el) {

function render (view, state) {
view = typeof view === 'string' ? getView(view) : view
return (el = onRoute(view, state || {}, el))
return (el = onRoute(view, state, el))
}

function getView (pathname) {
Expand Down

0 comments on commit bc47df9

Please sign in to comment.