Skip to content

Commit

Permalink
Cannot export PLP/PLE after second save #2760 (#2761)
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-abushkevich authored Oct 10, 2022
1 parent 85f643f commit 774c4ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/pages/estimation/cca-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,11 @@ define([

prepForSave() {
const specification = ko.toJS(this.estimationAnalysis());

// createdBy/modifiedBy INSIDE the spec should not be objects, just a string
specification.createdBy = this.estimationAnalysis().createdBy ? this.estimationAnalysis().createdBy.login : null;
specification.modifiedBy = this.estimationAnalysis().modifiedBy ? this.estimationAnalysis().modifiedBy.login : null;

specification.cohortDefinitions = [];
specification.conceptSets = [];
specification.conceptSetCrossReference = [];
Expand Down
5 changes: 5 additions & 0 deletions js/pages/prediction/prediction-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,11 @@ define([

prepForSave() {
const specification = ko.toJS(this.patientLevelPredictionAnalysis());

// createdBy/modifiedBy INSIDE the spec should not be objects, just a string
specification.createdBy = this.patientLevelPredictionAnalysis().createdBy ? this.patientLevelPredictionAnalysis().createdBy.login : null;
specification.modifiedBy = this.patientLevelPredictionAnalysis().modifiedBy ? this.patientLevelPredictionAnalysis().modifiedBy.login : null;

specification.targetIds = [];
specification.outcomeIds = [];
specification.cohortDefinitions = [];
Expand Down

0 comments on commit 774c4ba

Please sign in to comment.