Closed shadyhsoliman closed 3 years ago
Sample header:
sch_name,area_of_study,country,offered_int_dom,crs_title,crs_code,crs_level,domestic_type,sch_h2,sch_summary,sch_detailed,sch_about,sch_duration,sch_duration_detailed,award_value,award_benefit,criteria_eligibility,criteria_long,criteria_list,how_to_apply,how_to_apply_list,video_url,apply_url,date_application_close,date_result_release
Looks like platform issue. Existing CSV view uses _.snakeCase(...) to generate header name:
Code:
const _ = require('lodash');
const property = _.snakeCase('sch_h2 ');
console.log(property);
Output: sch_h_2
Closing in favor of #96 & #97
The client is having trouble when configuring the Headers as a string the component automatically creates (_) space between the text and the number as an example
The CSV contains sch_h2 which in the sample data the header turns to "sch_h_2". When the user saves the sample with "sch_h_2". This confuses the user and also causes difficulty to map the correct header at any following steps.
here's a step for replication.