File tree 1 file changed +6
-8
lines changed
web/server/vue-cli/src/components/Report
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -531,11 +531,8 @@ export default {
531
531
},
532
532
533
533
async loadReport (report ) {
534
- if (this .report && this .report .reportId .equals (report .reportId )) {
535
- this .highlightReport (report);
536
- this .loading = false ;
534
+ if (! report)
537
535
return ;
538
- }
539
536
540
537
this .report = report;
541
538
@@ -783,10 +780,11 @@ export default {
783
780
// If the warning message or location is different than the
784
781
// the last bug path element, then we render the warning.
785
782
786
- if (events .length == 0 ||
787
- this .report .checkerMsg !== events[events .length - 1 ].msg ||
788
- this .report .line .toNumber () !=
789
- events[events .length - 1 ].startLine .toNumber ()
783
+ if (this .sourceFile .fileId .equals (this .report .fileId ) &&
784
+ (events .length == 0 ||
785
+ this .report .checkerMsg !== events[events .length - 1 ].msg ||
786
+ this .report .line .toNumber () !=
787
+ events[events .length - 1 ].startLine .toNumber ())
790
788
){
791
789
const chkrmsg_data = { $id: 999 ,
792
790
$message: this .report .checkerMsg ,
You can’t perform that action at this time.
0 commit comments