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:
parent
eb5fd127e3
commit
cf559d48a2
4 changed files with 64 additions and 23 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue