File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1078,7 +1078,7 @@ def get_project_sector_graph_datav2(projectId)
10781078 projectSectorGraph [ 'sector_code' ] . each_with_index do |data , index |
10791079 if counter <=10
10801080 begin
1081- narrative = projectSectorGraph [ 'sector_narrative' ] [ index ]
1081+ narrative = projectSectorGraph [ 'sector_narrative' ] [ index ] . strip
10821082 percentage = projectSectorGraph [ 'sector_percentage' ] [ index ]
10831083 rescue
10841084 narrative = 'N/A'
@@ -1100,7 +1100,7 @@ def get_project_sector_graph_datav2(projectId)
11001100 c3ReadyStackBarData [ 1 ] = '['
11011101 projectSectorGraph [ 'sector_code' ] . each_with_index do |data , index |
11021102 begin
1103- narrative = begin projectSectorGraph [ 'sector_narrative' ] [ index ] rescue data end
1103+ narrative = begin projectSectorGraph [ 'sector_narrative' ] [ index ] . strip rescue data end
11041104 percentage = begin projectSectorGraph [ 'sector_percentage' ] [ index ] rescue 100 end
11051105 rescue
11061106 narrative = 'N/A'
Original file line number Diff line number Diff line change 116116 < script type ="text/javascript ">
117117 var mapType = "project" ;
118118 window . mainMarkers = <%= mapMarkers . to_json %> ;
119- var ProjectTitle = "<%= project [ 'title_narrative_text' ] . first %> " ;
119+ var ProjectTitle = "<%= project [ 'title_narrative_text' ] . first . strip %> " ;
120120 var countryCount = <%= countryOrRegion [ :countriesCount ] %> ;
121121 var regionCount = <%= countryOrRegion [ :regionsCount ] %> ;
122122 </ script >
You can’t perform that action at this time.
0 commit comments