Skip to content

Commit

Permalink
[first-sample] fix newState skin placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
Aldi Gunawan committed Apr 3, 2015
1 parent 1bc83ea commit b471d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/skin.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var Skin = React.createClass({
},

switchComponent: function(screen, args) {
var newState = args;
var newState = args || {};
newState.screen = screen;
this.setState(newState);
},
Expand Down

0 comments on commit b471d58

Please sign in to comment.