File tree 1 file changed +2
-10
lines changed
scripts/RestClient/nesp/tropical
1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -137,19 +137,11 @@ for(var i = 1; i < csvRows.length; i++) {
137
137
project . name = fields [ projectName ]
138
138
}
139
139
140
- if ( fields [ associatedProgram ] . indexOf ( ',' ) != - 1 ) {
141
- var tempAssociatedProgram = fields [ associatedProgram ] . replace ( / " " / g, '"' ) ; ;
142
- project . associatedProgram = tempAssociatedProgram . substring ( 1 , tempAssociatedProgram . length - 1 ) ;
143
- }
144
- else {
140
+ if ( fields [ associatedProgram ] ) {
145
141
project . associatedProgram = fields [ associatedProgram ]
146
142
}
147
143
148
- if ( fields [ associatedSubProgram ] . indexOf ( ',' ) != - 1 ) {
149
- var tempAssociatedSubProgram = fields [ associatedSubProgram ] . replace ( / " " / g, '"' ) ; ;
150
- project . associatedSubProgram = tempAssociatedSubProgram . substring ( 1 , tempAssociatedSubProgram . length - 1 ) ;
151
- }
152
- else {
144
+ if ( fields [ associatedSubProgram ] ) {
153
145
project . associatedSubProgram = fields [ associatedSubProgram ]
154
146
}
155
147
You can’t perform that action at this time.
0 commit comments