From 27c101118e61ca9f5f1a7970d132b4f4fb847fa0 Mon Sep 17 00:00:00 2001 From: oleg-odysseus Date: Wed, 23 Oct 2024 17:17:07 +0200 Subject: [PATCH] Fixed issue with current conceptset ID not propagating correctly into a URL for router to the current active concept set --- js/pages/concept-sets/conceptset-manager.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); }