diff --git a/js/pages/concept-sets/conceptset-manager.js b/js/pages/concept-sets/conceptset-manager.js index fb8e8edc6..2da5b9dc0 100644 --- a/js/pages/concept-sets/conceptset-manager.js +++ b/js/pages/concept-sets/conceptset-manager.js @@ -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, @@ -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); @@ -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); }