File tree 1 file changed +9
-9
lines changed
src/components/CognateAnalysisModal
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -2260,10 +2260,10 @@ class CognateAnalysisModal extends React.Component {
2260
2260
const { fileSuite, debugFlag } = this . state ;
2261
2261
const resultPool = new Array ( fileSuite . length ) ;
2262
2262
2263
- for ( const [ index , file ] of fileSuite . entries ( ) ) {
2264
- const reader = new FileReader ( ) ;
2265
- reader . onload = ( ) => {
2266
- try {
2263
+ try {
2264
+ for ( const [ index , file ] of fileSuite . entries ( ) ) {
2265
+ const reader = new FileReader ( ) ;
2266
+ reader . onload = ( ) => {
2267
2267
resultPool [ index ] = JSON . parse ( reader . result ) ;
2268
2268
2269
2269
if ( ( index + 1 ) == fileSuite . length ) {
@@ -2277,11 +2277,11 @@ class CognateAnalysisModal extends React.Component {
2277
2277
error_data => this . handleError ( error_data )
2278
2278
) ;
2279
2279
}
2280
- } catch ( error_data ) {
2281
- this . handleError ( error_data )
2282
- }
2283
- } ;
2284
- reader . readAsText ( file ) ;
2280
+ } ;
2281
+ reader . readAsText ( file ) ;
2282
+ }
2283
+ } catch ( error_data ) {
2284
+ this . handleError ( error_data ) ;
2285
2285
}
2286
2286
} else {
2287
2287
/* Otherwise we will launch it as usual and then will wait for results to display them. */
You can’t perform that action at this time.
0 commit comments