use full resultType with csv download on chart in dashboard (#17431)

This commit is contained in:
Elizabeth Thompson 2021-11-15 09:57:05 -08:00 committed by GitHub
parent 9741eaa731
commit 71e3fa1bf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ describe('Chart', () => {
expect(stubbedExportCSV.lastCall.args[0]).toEqual(
expect.objectContaining({
formData: expect.anything(),
resultType: 'results',
resultType: 'full',
resultFormat: 'csv',
}),
);

View File

@ -252,7 +252,7 @@ export default class Chart extends React.Component {
formData: isFullCSV
? { ...this.props.formData, row_limit: this.props.maxRows }
: this.props.formData,
resultType: 'results',
resultType: 'full',
resultFormat: 'csv',
});
}