From b5653b5e31cf88c323a830f1aa06fd922fce4286 Mon Sep 17 00:00:00 2001 From: Aaron Zielstorff Date: Tue, 17 Dec 2024 11:33:12 +0100 Subject: [PATCH] Fixes error in SMEHandling were CDRepoURL wasn't accessible --- aas-web-ui/src/mixins/SubmodelElementHandling.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/aas-web-ui/src/mixins/SubmodelElementHandling.ts b/aas-web-ui/src/mixins/SubmodelElementHandling.ts index 10db3c52..0a946d49 100644 --- a/aas-web-ui/src/mixins/SubmodelElementHandling.ts +++ b/aas-web-ui/src/mixins/SubmodelElementHandling.ts @@ -1376,10 +1376,7 @@ export default defineComponent({ // Get all ConceptDescriptions for the SubmodelElement from the ConceptDescription Repository async getConceptDescriptions(SelectedNode: any) { - let conceptDescriptionRepoUrl = ''; - if (this.conceptDescriptionRepoUrl && this.conceptDescriptionRepoUrl != '') { - conceptDescriptionRepoUrl = this.conceptDescriptionRepoUrl; - } else { + if (!this.conceptDescriptionRepoUrl || this.conceptDescriptionRepoUrl === '') { return Promise.resolve([]); // Return an empty object wrapped in a resolved promise } @@ -1409,7 +1406,7 @@ export default defineComponent({ ); const cdPromises = semanticIdsUniqueToFetch.map((semanticId: string) => { - const path = conceptDescriptionRepoURL + '/' + this.URLEncode(semanticId); + const path = this.conceptDescriptionRepoUrl + '/' + this.URLEncode(semanticId); const context = 'retrieving ConceptDescriptions'; const disableMessage = true;