Skip to content

Commit

Permalink
Export JSON and SQL in IR analysis should be generated after saving v…
Browse files Browse the repository at this point in the history
…alid analysis design #2522 (#2553)

(cherry picked from commit 48090bb)
  • Loading branch information
anton-abushkevich authored and ssuvorov-fls committed Jun 10, 2021
1 parent 2177b44 commit 690ff44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/pages/incidence-rates/ir-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ define([
alert(ko.i18n('ir.nameConflict', 'An incidence rate with this name already exists. Please choose a different name.')());
} else {
const savedIR = await IRAnalysisService.saveAnalysis(this.selectedAnalysis());
this.selectedAnalysisId(savedIR.id);
this.selectedAnalysis(new IRAnalysisDefinition(savedIR));
this.dirtyFlag(new ohdsiUtil.dirtyFlag(this.selectedAnalysis()));
commonUtils.routeTo(constants.apiPaths.analysis(savedIR.id));
Expand Down

0 comments on commit 690ff44

Please sign in to comment.