diff --git a/static/js/main.js b/static/js/main.js index 5eb9a2a..7aac80d 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -64,7 +64,8 @@ var StoryTaskTable = React.createClass({ render: function() { var taskNodes = this.props.tasks.map(function (task) { return ; - }); + }.bind(this)); + return ( {taskNodes} @@ -111,11 +112,16 @@ var StoryData = React.createClass({ }); }), render: function() { + var taskTable = null; + + if (this.props.data.tasks) + taskTable = ; + if (this.props.data) { return (
Assignee: {this.props.data.assignee}
{this.props.data.content}
- + {taskTable}
); }