Skip to content

Commit

Permalink
Switch autosuggest item to actual link
Browse files Browse the repository at this point in the history
  • Loading branch information
tlovett1 committed Jul 17, 2020
1 parent 53620da commit a0877ed
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion assets/css/autosuggest.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
list-style: none;
& > li {
font-family: sans-serif;
& > span {
& > a.autosuggest-link {
display: block;
color: #000;
padding: 2px 10px;
Expand Down
2 changes: 1 addition & 1 deletion assets/js/autosuggest.js
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ function init() {
// fetch the results
const response = await esSearch(query, searchText);

if (response && response._shards.successful > 0) {
if (response && response._shards && response._shards.successful > 0) {
const hits = checkForOrderedPosts(response.hits.hits, searchText);
const formattedResults = formatSearchResults(hits);

Expand Down
2 changes: 1 addition & 1 deletion dist/css/autosuggest-styles.min.css

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

2 changes: 1 addition & 1 deletion dist/css/autosuggest-styles.min.css.map

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

2 changes: 1 addition & 1 deletion dist/js/autosuggest-script.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/autosuggest-script.min.js.map

Large diffs are not rendered by default.

0 comments on commit a0877ed

Please sign in to comment.