Skip to content

Commit

Permalink
changes based on review
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Jul 4, 2018
1 parent 60f66b2 commit 5bb93ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
EuiSearchBar,
} from '@elastic/eui';

const loadGroups = () => {
function loadGroups() {
return ml.jobs.groups()
.then((groups) => {
return groups.map(g => ({
Expand All @@ -35,7 +35,7 @@ const loadGroups = () => {
console.log(error);
return [];
});
};
}

export class JobFilterBar extends Component {
constructor(props) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export function filterJobs(jobs, clauses) {
}

// keep count of the number of matches we make as we're looping over the clauses
// we only want to return jobs with match all clauses, i.e. each search term is ANDed
// we only want to return jobs which match all clauses, i.e. each search term is ANDed
const matches = jobs.reduce((p, c) => {
p[c.id] = {
job: c,
Expand Down

0 comments on commit 5bb93ee

Please sign in to comment.