FIX: Query downloads were being passed an incorrect query object. (#359)

This is a follow-up to d726c4889e.

The previous change missed changing the name of the query object when passing it to QueryResultsWrapper, which resulted in the download links not working properly after a query was run.

This change fixes that bug, and includes an acceptance test to ensure it stays fixed during future work on this plugin.
This commit is contained in:
Gary Pendergast
2025-02-14 10:11:32 +11:00
committed by GitHub
parent 6dc695cced
commit c13e79d21b
3 changed files with 84 additions and 6 deletions
@@ -150,11 +150,6 @@ export default class PluginsExplorerController extends Controller {
this.showCreate = true;
}
@action
resetParams() {
this.selectedItem.resetParams();
}
@action
updateSortProperty(property) {
if (this.sortByProperty === property) {
@@ -217,7 +217,7 @@
<QueryResultsWrapper
@results={{this.results}}
@showResults={{this.showResults}}
@query={{this.selectedItem}}
@query={{this.model}}
@content={{this.results}}
/>
{{/if}}