Skip to content

Commit

Permalink
Fix post-rebase issues
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Oct 22, 2018
1 parent 982b2f1 commit aea02a9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
23 changes: 13 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class HierarchicalTermSelector extends Component {

const resultCount = getResultCount( filteredTermsTree );
const resultsFoundMessage = sprintf(
_n( '%d result found.', '%d results found.', resultCount, 'term' ),
_n( '%d result found.', '%d results found.', resultCount ),
resultCount
);
this.props.debouncedSpeak( resultsFoundMessage, 'assertive' );
Expand Down Expand Up @@ -321,7 +321,7 @@ class HierarchicalTermSelector extends Component {
slug === 'category' ? __( 'Categories' ) : __( 'Terms' )
)
);
const showFilter = availableTerms.length >= MIN_TERMS_COUNT_FOR_FILTER;
const showFilter = availableTerms && ( availableTerms.length >= MIN_TERMS_COUNT_FOR_FILTER );

return [
showFilter && <label
Expand Down

0 comments on commit aea02a9

Please sign in to comment.