using json-2-csv package for the csv export now since the old package has not been updated in 4 years

This commit is contained in:
csawatzky 2025-02-28 14:50:36 -06:00
parent eb5fd127e3
commit cf559d48a2
4 changed files with 64 additions and 23 deletions

View file

@ -93,14 +93,11 @@ class ExportDataSettings extends React.Component<Props, State> {
};
submit = () => {
console.log("submit export request")
const { device, component, newMeasurements, user } = this.props;
const { startDate, endDate } = this.state;
const { sampleMeasurements, listUnitMeasurements } = this.context;
this.setState({ isLoading: true });
console.log("Device")
console.log(device)
// if (newMeasurements) {
listUnitMeasurements(
device.id(),