From 3d0cd9a0bfd79b91edd71bfe6e0c4adaa087ed3d Mon Sep 17 00:00:00 2001 From: Stefan Peters Date: Thu, 18 Nov 2021 10:38:05 +0100 Subject: [PATCH] MappingBrowser: Adjust how concepts are loaded (#646) --- src/components/MappingBrowser.vue | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/components/MappingBrowser.vue b/src/components/MappingBrowser.vue index a9398f09..83f35a5f 100644 --- a/src/components/MappingBrowser.vue +++ b/src/components/MappingBrowser.vue @@ -1416,7 +1416,7 @@ export default { section.url = mappings._url } // Concept information possibly needs to be loaded - this.mbLoadConcepts(_.flatten(mappings.map(mapping => this.$jskos.conceptsOfMapping(mapping)))) + loadConcepts(_.flatten(mappings.map(mapping => this.$jskos.conceptsOfMapping(mapping)))) // Add items let skipped = 0 // Keep track of number of skipped items for (let mapping of mappings) { @@ -1498,15 +1498,6 @@ export default { } return sections }, - mbLoadConcepts(concepts) { - let toLoad = [] - for (let concept of concepts) { - if(concept && !this.$jskos.isContainedIn(concept, this.loadingConcepts) && this.getProvider(concept)) { - toLoad.push(concept) - } - } - loadConcepts(toLoad) - }, droppedConcept(object, targets) { _.forOwn(targets, (path, type) => { let text = ""