This commit is contained in:
Belen Curcio
2017-07-31 09:36:00 -03:00
parent ea17c068dd
commit c9df0e5e40
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ const routes = (
{/* Moderation Routes */}
<Route path='moderate' component={ModerationLayout}>
<IndexRoute component={Moderation} />
<Route path='all' components={Moderation}>
<Route path=':id' components={Moderation} />
</Route>
@@ -73,7 +73,7 @@ const StorySearch = (props) => {
createdAt={new Date(story.created_at).toISOString()}
open={storyOpen}
author={story.author}
goToStory={() => props.goToStory(story.id, isPremod(story.settings.moderation))}
goToStory={() => props.goToStory(story.id)}
/>;
})
}
@@ -57,9 +57,9 @@ class StorySearchContainer extends React.Component {
this.props.storySearchChange(searchValue);
}
goToStory = (id, premod) => {
goToStory = (id) => {
const {router} = this.props;
router.push(`/admin/moderate/${premod ? 'premod' : 'new'}/${id}`);
router.push(`/admin/moderate/${id}`);
this.clearAndCloseSearch();
}