Skip to content

Commit

Permalink
fix(#358): encode chart url from explorer and clean up yasqe
Browse files Browse the repository at this point in the history
  • Loading branch information
aswallace committed Mar 24, 2023
1 parent 22eb99a commit 9400b0f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion app/src/components/explorer/SearchResultsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export default {
} else if (this.resultsTab === 'getSamples') {
return this.$router.push(`/explorer/sample/${identifier}`)
} else if (this.resultsTab === 'getCharts') {
return this.$router.push(`/explorer/chart/view/${identifier}`)
return this.$router.push(`/explorer/chart/view/${encodeURIComponent(identifier)}`)
} else if (this.resultsTab === 'getImages') {
return this.$router.push(`/explorer/images/${address}/${encodeURIComponent(prefix)}`)
}
Expand Down
3 changes: 0 additions & 3 deletions app/src/components/explorer/yasqe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ export default {
this.yasqe.on('queryResults', function (yasqe, response, duration) {
yasqeContext.$emit('query-success', response)
})
this.yasqe.on('changes', () => {
yasqeContext.$emit('input', yasqeContext.yasqe.getValue())
})
},
watch: {
value (value) {
Expand Down

0 comments on commit 9400b0f

Please sign in to comment.