Created
February 24, 2020 17:54
-
-
Save ehelms/5f7ab49d9252ea7d4aec04b2334bc2dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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