You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current method use xlsx.utils.sheet_to_json() which misses data when the cell is empty.
The new parseSheet function accept a csv variable and returns rich data about the result. Using it also makes the ProfilePage more loosely coupled with parser logic.
In order to use it, have loadData call sheet_to_csv instead and pass the csv to parseSheet in recordParser.js. The result will be returned and should be passed to this.props.importRecords() to push to redux. Then navigate to '/preview'.
Helper methods will also needed to be implemented. parseHeader and parseCell in recordParser.js
The text was updated successfully, but these errors were encountered:
The current method use
xlsx.utils.sheet_to_json()
which misses data when the cell is empty.The new
parseSheet
function accept a csv variable and returns rich data about the result. Using it also makes theProfilePage
more loosely coupled with parser logic.In order to use it, have
loadData
callsheet_to_csv
instead and pass the csv toparseSheet
inrecordParser.js
. The result will be returned and should be passed tothis.props.importRecords()
to push to redux. Then navigate to'/preview'
.Helper methods will also needed to be implemented.
parseHeader
andparseCell
in recordParser.jsThe text was updated successfully, but these errors were encountered: