Skip to content

Commit

Permalink
MappingBrowser: Adjust how concepts are loaded (#646)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Nov 18, 2021
1 parent 38987de commit 3d0cd9a
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/components/MappingBrowser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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 = ""
Expand Down

0 comments on commit 3d0cd9a

Please sign in to comment.