diff --git a/SingularityUI/app/actions/ui/taskSearch.es6 b/SingularityUI/app/actions/ui/taskSearch.es6 index f25eaad013..fdf2fbae39 100644 --- a/SingularityUI/app/actions/ui/taskSearch.es6 +++ b/SingularityUI/app/actions/ui/taskSearch.es6 @@ -4,10 +4,3 @@ export const UpdateFilter = (filter) => ({ filter, type: 'UPDATE_TASK_SEARCH_FILTER' }); - -export const refresh = (requestId, count, page) => (dispatch) => - Promise.all([ - dispatch(FetchTaskSearchParams.clear()), - dispatch(FetchTaskSearchParams.trigger(requestId, count, page)), - dispatch(UpdateFilter({ requestId })), - ]); \ No newline at end of file diff --git a/SingularityUI/app/components/taskSearch/TaskSearch.jsx b/SingularityUI/app/components/taskSearch/TaskSearch.jsx index b9660b2c55..d347c2b477 100644 --- a/SingularityUI/app/components/taskSearch/TaskSearch.jsx +++ b/SingularityUI/app/components/taskSearch/TaskSearch.jsx @@ -4,7 +4,7 @@ import { Link } from 'react-router'; import { Glyphicon, Label } from 'react-bootstrap'; import rootComponent from '../../rootComponent'; import { FetchTaskSearchParams } from '../../actions/api/history'; -import { UpdateFilter, refresh } from '../../actions/ui/taskSearch'; +import { UpdateFilter } from '../../actions/ui/taskSearch'; import Breadcrumbs from '../common/Breadcrumbs'; import TaskSearchFilters from './TaskSearchFilters'; @@ -121,7 +121,7 @@ class TaskSearch extends React.Component { ref={(table) => this.bindResetPageAndCount(table)} > refresh(Utils.maybe(props, ['params', 'requestId'], undefined), INITIAL_TASKS_PER_PAGE, 1), false)); +export default connect(mapStateToProps, mapDispatchToProps)(rootComponent(TaskSearch, null, false));