File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed
Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -388,13 +388,13 @@ export class InterfaceManager extends DisposableObject {
388388 pageNumber : number
389389 ) : Promise < void > {
390390 if ( this . _displayedQuery === undefined ) {
391- throw new Error ( ` Trying to show interpreted results but displayed query was undefined` ) ;
391+ throw new Error ( ' Trying to show interpreted results but displayed query was undefined' ) ;
392392 }
393393 if ( this . _interpretation === undefined ) {
394- throw new Error ( ` Trying to show interpreted results but interpretation was undefined` ) ;
394+ throw new Error ( ' Trying to show interpreted results but interpretation was undefined' ) ;
395395 }
396396 if ( this . _interpretation . sarif . runs [ 0 ] . results === undefined ) {
397- throw new Error ( ` Trying to show interpreted results but results were undefined` ) ;
397+ throw new Error ( ' Trying to show interpreted results but results were undefined' ) ;
398398 }
399399
400400 const resultSetSchemas = await this . getResultSetSchemas ( this . _displayedQuery ) ;
@@ -524,7 +524,7 @@ export class InterfaceManager extends DisposableObject {
524524 INTERPRETED_RESULTS_PAGE_SIZE * pageNumber ,
525525 INTERPRETED_RESULTS_PAGE_SIZE * ( pageNumber + 1 )
526526 )
527- }
527+ } ;
528528 }
529529
530530 if ( this . _interpretation === undefined ) {
@@ -537,7 +537,7 @@ export class InterfaceManager extends DisposableObject {
537537 return {
538538 ...interp ,
539539 sarif : { ...interp . sarif , runs : [ getPageOfRun ( interp . sarif . runs [ 0 ] ) ] } ,
540- }
540+ } ;
541541 }
542542
543543 private async interpretResultsInfo (
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ export class ResultTables
117117 * true as long as the result sets we're given are marked to permit it.
118118 */
119119 paginationEnabled ( ) : boolean {
120- return this . paginationAllowed ( )
120+ return this . paginationAllowed ( ) ;
121121 }
122122
123123 constructor ( props : ResultTablesProps ) {
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ class App extends React.Component<{}, ResultsViewState> {
197197 this . loadResults ( ) ;
198198 break ;
199199 case 'showInterpretedPage' :
200- const resultsInfo : ResultsInfo = {
200+ this . updateStateWithNewResultsInfo ( {
201201 resultsPath : '' , // FIXME: Not used for interpreted, refactor so this is not needed
202202 parsedResultSets : {
203203 t : 'ExtensionParsed' ,
@@ -218,8 +218,7 @@ class App extends React.Component<{}, ResultsViewState> {
218218 interpretation : msg . interpretation ,
219219 shouldKeepOldResultsWhileRendering : true ,
220220 metadata : msg . metadata ,
221- } ;
222- this . updateStateWithNewResultsInfo ( resultsInfo ) ;
221+ } ) ;
223222 this . loadResults ( ) ;
224223 break ;
225224 case 'resultsUpdating' :
You can’t perform that action at this time.
0 commit comments