Skip to content
Snippets Groups Projects
Commit a609a0e4 authored by Tom Robinson's avatar Tom Robinson
Browse files

Update frontend to match csv/json endpoint changes

parent 9ad4e74f
Branches
Tags
No related merge requests found
......@@ -38,9 +38,10 @@ export default class DownloadWidget extends Component {
`/api/card/${card.id}/query/${type}`:
`/api/dataset/${type}`
}
params={{
query: JSON.stringify(datasetQuery)
}}
params={card.id != null ?
{ parameters: JSON.stringify(datasetQuery.parameters) } :
{ query: JSON.stringify(datasetQuery) }
}
extensions={[type]}
>
{type}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment