Skip to content

Commit

Permalink
fix task search bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ssalinas committed Apr 6, 2017
1 parent a633dc8 commit f823af3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
7 changes: 0 additions & 7 deletions SingularityUI/app/actions/ui/taskSearch.es6
Original file line number Diff line number Diff line change
Expand Up @@ -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 })),
]);
6 changes: 3 additions & 3 deletions SingularityUI/app/components/taskSearch/TaskSearch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -121,7 +121,7 @@ class TaskSearch extends React.Component {
ref={(table) => this.bindResetPageAndCount(table)}
>
<Column
label=""
label="Task"
id="url"
key="url"
className="actions-column"
Expand Down Expand Up @@ -213,4 +213,4 @@ function mapDispatchToProps(dispatch) {
};
}

export default connect(mapStateToProps, mapDispatchToProps)(rootComponent(TaskSearch, (props) => refresh(Utils.maybe(props, ['params', 'requestId'], undefined), INITIAL_TASKS_PER_PAGE, 1), false));
export default connect(mapStateToProps, mapDispatchToProps)(rootComponent(TaskSearch, null, false));

0 comments on commit f823af3

Please sign in to comment.