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:
parent
974be7d591
commit
f5cd03a451
|
@ -231,7 +231,7 @@ export default class QueryResult extends Component {
|
||||||
"action",
|
"action",
|
||||||
getURL(
|
getURL(
|
||||||
this._download_url() +
|
this._download_url() +
|
||||||
this.get("query.id") +
|
this.args.query.id +
|
||||||
"/run." +
|
"/run." +
|
||||||
format +
|
format +
|
||||||
"?download=1"
|
"?download=1"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{{#if @results}}
|
{{#if @results}}
|
||||||
<div class="query-results">
|
<div class="query-results">
|
||||||
{{#if @showResults}}
|
{{#if @showResults}}
|
||||||
<QueryResult @query={{@selectedItem}} @content={{@results}} />
|
<QueryResult @query={{@query}} @content={{@results}} />
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#each @results.errors as |err|}}
|
{{#each @results.errors as |err|}}
|
||||||
<pre class="query-error"><code>{{~err}}</code></pre>
|
<pre class="query-error"><code>{{~err}}</code></pre>
|
||||||
|
|
Loading…
Reference in New Issue