FIX: Downloading query results (#211)

We were not passing the correct value from the `query-results-wrapper` to the `query-result` component causing downloads to fail.
This commit is contained in:
Isaac Janzen 2022-12-29 14:47:18 -06:00 committed by GitHub
parent 974be7d591
commit f5cd03a451
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ export default class QueryResult extends Component {
"action",
getURL(
this._download_url() +
this.get("query.id") +
this.args.query.id +
"/run." +
format +
"?download=1"

View File

@ -1,7 +1,7 @@
{{#if @results}}
<div class="query-results">
{{#if @showResults}}
<QueryResult @query={{@selectedItem}} @content={{@results}} />
<QueryResult @query={{@query}} @content={{@results}} />
{{else}}
{{#each @results.errors as |err|}}
<pre class="query-error"><code>{{~err}}</code></pre>