Skip to content

Commit

Permalink
Fix highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyHoenderdaal authored Apr 15, 2024
1 parent 3990a64 commit 3943c35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/components/Search/Autocomplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default {
methods: {
highlight(hit, field) {
let source = hit._source ?? hit.source
let highlight = hit.highlight ?? hit.source.highlight
let highlight = hit.highlight ?? source.highlight
return highlight?.[field]?.[0] ?? source?.[field] ?? ''
},
},
Expand Down

0 comments on commit 3943c35

Please sign in to comment.