()
| 42 | } |
| 43 | |
| 44 | getFilters() { |
| 45 | const filters = {}; |
| 46 | |
| 47 | filters.dateRange = this.getNextDateRange(); |
| 48 | if (this.props.preference.language) { |
| 49 | filters.language = this.props.preference.language; |
| 50 | } |
| 51 | |
| 52 | if (this.props.preference.options.token) { |
| 53 | filters.token = this.props.preference.options.token; |
| 54 | } |
| 55 | |
| 56 | return filters; |
| 57 | } |
| 58 | |
| 59 | getNextDateRange() { |
| 60 | const repositories = this.props.github.repositories || []; |
no test coverage detected