Skip to content

Commit

Permalink
fix(frontend): update chart links in explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
aswallace committed Mar 25, 2023
1 parent 603de28 commit 2d4ef7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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 @@ -85,7 +85,7 @@
<md-card-media-cover md-solid>
<md-card-media md-ratio="4:3" v-if="result.thumbnail">
<img
:src="baseUrl + '/api/knowledge/images?uri=' + result.thumbnail.split('=')[1]"
:src="baseUrl + '/api/knowledge/images?uri=' + result.thumbnail"
:alt="result.label"
v-if="result.thumbnail"
>
Expand Down
2 changes: 1 addition & 1 deletion app/src/modules/vega-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ async function loadChart (chartUri) {
chartUrl = decodeURIComponent(chartUri.split('view/')[1])
}

const valuesBlock = `\n VALUES (?uri) { (<${chartUri}>) }`
const valuesBlock = `\n VALUES (?uri) { (<${chartUrl}>) }`
const singleChartQuery = chartQuery.replace(/(where\s*{)/i, '$1' + valuesBlock)
const { results } = await querySparql(singleChartQuery)
const rows = results.bindings
Expand Down

0 comments on commit 2d4ef7f

Please sign in to comment.