Skip to content

Instantly share code, notes, and snippets.

@ehelms
Created February 24, 2020 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ehelms/5f7ab49d9252ea7d4aec04b2334bc2dc to your computer and use it in GitHub Desktop.
Save ehelms/5f7ab49d9252ea7d4aec04b2334bc2dc to your computer and use it in GitHub Desktop.
fetchBaselines(id) {
return function({ search, orderBy, orderHow } = {}) {
/*eslint-disable camelcase*/
let params = {
order_by: orderBy,
order_how: orderHow
};
if (search) {
params.display_name = search;
}
/*eslint-enable camelcase*/
this.props.fetchBaselines(id, params);
}
}
fetchBaselines ={ fetchBaselines('CHECKBOX') }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment