Skip to content

Commit

Permalink
Merge pull request #4082 from cservakt/update-reviewstatus-dropdown
Browse files Browse the repository at this point in the history
[GUI] Update reviewData when switching between reports
  • Loading branch information
dkrupp authored Nov 16, 2023
2 parents 006db80 + ef537ab commit 88af1ff
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions web/server/vue-cli/src/components/Report/Report.vue
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ export default {
step: null,
editor: null,
sourceFile: null,
reviewData: new ReviewData(),
jsPlumbInstance: null,
lineMarks: [],
lineWidgets: [],
Expand Down Expand Up @@ -386,6 +385,12 @@ export default {
return this.showComments
? maxCols - this.commentCols
: maxCols;
},
reviewData() {
return this.report && this.report.reviewData
? this.report.reviewData
: new ReviewData();
}
},
Expand Down Expand Up @@ -531,8 +536,6 @@ export default {
this.report = report;
this.reviewData = report.reviewData;
await this.setSourceFileData(report.fileId);
await this.drawBugPath();
Expand Down

0 comments on commit 88af1ff

Please sign in to comment.