Skip to content

Commit

Permalink
Fixed issue with current conceptset ID not propagating correctly into…
Browse files Browse the repository at this point in the history
… a URL for router to the current active concept set
  • Loading branch information
oleg-odysseus authored and alex-odysseus committed Oct 29, 2024
1 parent b121c02 commit 27c1011
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/pages/concept-sets/conceptset-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ define([
this.selectedTab = ko.observable(0);

this.activeUtility = ko.observable("");
this.newConceptSetIdForCopyAnnotations = ko.observable(0);

GlobalPermissionService.decorateComponent(this, {
entityTypeGetter: () => entityType.CONCEPT_SET,
Expand Down Expand Up @@ -541,7 +542,7 @@ define([
const current = this.conceptSetStore.current();
current.modifiedBy = savedConceptSet.data.modifiedBy;
current.modifiedDate = savedConceptSet.data.modifiedDate;
current.id=savedConceptSet.data.id;
this.newConceptSetIdForCopyAnnotations(savedConceptSet.data.id);
this.conceptSetStore.current(current);

this.previewVersion(null);
Expand Down Expand Up @@ -591,7 +592,7 @@ define([
await this.saveConceptSet(this.currentConceptSet(), "#txtConceptSetName");
let copyAnnotationsRequest = {
sourceConceptSetId: sourceConceptSetId,
targetConceptSetId: this.currentConceptSet().id
targetConceptSetId: this.newConceptSetIdForCopyAnnotations(),
};
await conceptSetService.copyAnnotations(copyAnnotationsRequest);
}
Expand Down

0 comments on commit 27c1011

Please sign in to comment.