From f3d23262123bc4d1a748094eb016cef0d9ec597b Mon Sep 17 00:00:00 2001 From: "Shaun A. Noordin" Date: Thu, 9 Jun 2022 21:26:10 +0100 Subject: [PATCH] Fix Student Assignments Data Downloads for Wildwatch Kenya - SQL fetch now calls correct columns - Downloading empty assignments creates a file saying 'no data' --- .../ClassificationsDownloadButton.jsx | 49 ++++++++++--------- .../kenya/wildwatch-kenya.classroom-config.js | 8 +-- .../kenya/wildwatch-kenya.map-config.js | 43 ++++++++-------- 3 files changed, 51 insertions(+), 49 deletions(-) diff --git a/src/modules/wildcam-classrooms/components/ClassificationsDownloadButton.jsx b/src/modules/wildcam-classrooms/components/ClassificationsDownloadButton.jsx index 23ab0da9..1f887ce1 100644 --- a/src/modules/wildcam-classrooms/components/ClassificationsDownloadButton.jsx +++ b/src/modules/wildcam-classrooms/components/ClassificationsDownloadButton.jsx @@ -28,9 +28,9 @@ class ClassificationsDownloadButton extends React.Component { state: 'idle', }; } - + // ---------------------------------------------------------------- - + componentDidMount() { this.initialise(this.props); } @@ -38,19 +38,19 @@ class ClassificationsDownloadButton extends React.Component { componentWillReceiveProps(nextProps) { this.initialise(nextProps); } - + initialise(props = this.props) { } render() { const props = this.props; const state = this.state; - + let icon = ; if (state.state === 'fetching') icon = ; - + const onClick = this.onClick.bind(this); - + return (