componentDidMount: function() { TagStore.addChangeListener(this._onChange); var post = BlogStore.getPost(this.props.params.id); if (!post) { return SessionActions.redirect('/admin'); } this.setState({ title: post.title, body: post.body_raw, selectedTags: this.setSelectedTags(post.tags) }); this.parseBody(); },
componentDidMount: function() { TagStore.addChangeListener(this._onChange); },