Skip to content

Commit

Permalink
Migrate openResult method to SearchResult component
Browse files Browse the repository at this point in the history
After moving the `SearchResult` to its own component and leaving
 out the openResult method, the search results do not lead anywhere but
 but error out.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
  • Loading branch information
nfebe committed Nov 28, 2023
1 parent 2d9f38e commit 86cf466
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions core/src/components/GlobalSearch/SearchResult.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ export default {
thumbnailErrorHandler() {
this.thumbnailHasError = true
},
openResult(result) {
if (result.resourceUrl) {
window.location = result.resourceUrl
}
},
},
}
</script>
Expand Down
5 changes: 0 additions & 5 deletions core/src/views/GlobalSearchModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,6 @@ export default {
})
this.results = sortedResults
},
openResult(result) {
if (result.resourceUrl) {
window.location = result.resourceUrl
}
},
mapContacts(contacts) {
return contacts.map(contact => {
return {
Expand Down

0 comments on commit 86cf466

Please sign in to comment.