Skip to content

Commit

Permalink
Fixes error in SMEHandling were CDRepoURL wasn't accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronzi committed Dec 17, 2024
1 parent a31109f commit b5653b5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions aas-web-ui/src/mixins/SubmodelElementHandling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit b5653b5

Please sign in to comment.