From b471d58d961859c849f6ae91e76afab5ae4ec0ad Mon Sep 17 00:00:00 2001 From: Aldi Gunawan Date: Fri, 3 Apr 2015 15:34:13 -0700 Subject: [PATCH] [first-sample] fix newState skin placeholder --- js/skin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/skin.js b/js/skin.js index c8733b8a6..8886f2937 100644 --- a/js/skin.js +++ b/js/skin.js @@ -7,7 +7,7 @@ var Skin = React.createClass({ }, switchComponent: function(screen, args) { - var newState = args; + var newState = args || {}; newState.screen = screen; this.setState(newState); },