gregnb / gregnb/mui-datatables

onDownload throws error 'Cannot read property 'download' of undefined', when passing custom body in buildBody function

Open
#1,178 5 comments 0 reactions 0 assignees View on GitHub
needs verification
Dominant language
JavaScript
Stars
2.7k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

## Expected Behavior

## Current Behavior

## Steps to Reproduce (for bugs)

1.
2.
3.
4.

## Your Environment

| Tech | Version |
|--------------|---------|
| Material-UI | |
| MUI-datatables | |
| React | |
| browser | |
| etc | |

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the buildBody function and the onDownload entry point in the JavaScript source, then reproduce the error while passing a custom body. Done means custom-body downloads no longer throw the reported undefined-property error; add or update a regression test if the repository has coverage for this behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.