From fcb335c22e75c9c19722275736c886486ccc3784 Mon Sep 17 00:00:00 2001 From: Bhuvnesh Bansal Date: Fri, 5 Jun 2015 11:11:21 +0530 Subject: [PATCH] undefined data variable. data is undefined here it should be in props. --- src/react-bootstrap-treeview.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/react-bootstrap-treeview.jsx b/src/react-bootstrap-treeview.jsx index e65fedf..4f9dbba 100644 --- a/src/react-bootstrap-treeview.jsx +++ b/src/react-bootstrap-treeview.jsx @@ -61,7 +61,7 @@ var TreeView = React.createClass({ }, render: function() { - + var data = this.props.data; this.setNodeId({ nodes: data }); var children = []; @@ -229,4 +229,4 @@ var TreeNode = React.createClass({ ); } -}); \ No newline at end of file +});