Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
fix(breadcrumb): remove missing labels
Browse files Browse the repository at this point in the history
  • Loading branch information
vhf committed Dec 11, 2019
1 parent c8c4b75 commit c9fb533
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions components/fallback/ObjectDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,10 @@ export default {
.concat(this.ontology.match(null, this.$termIRI.equivalentProperty, this.iri)
.toArray()
.map((quad) => _get(quad.subject, 'value'))
).filter(Boolean)
return equivalentProperty
)
.filter(Boolean)
return [...new Set(equivalentProperty)]
},
equivalentClass () {
const equivalentClass = this.ontology.match(this.iri, this.$termIRI.equivalentClass)
Expand Down Expand Up @@ -375,7 +377,7 @@ export default {
while (child.parent) {
const label = this.label(rdf.namedNode(child.iri), this.bothDatasets)
const target = this.$rebaseIRI(child.iri)
if (!child.isCreativeWork) {
if (!child.isCreativeWork && label) {
path.push({ label, target })
}
child = child.parent
Expand All @@ -393,7 +395,7 @@ export default {
while (child.parent) {
const label = this.label(rdf.namedNode(child.iri), this.bothDatasets)
const target = this.$rebaseIRI(child.iri)
if (!child.isCreativeWork) {
if (!child.isCreativeWork && label) {
path.push({ label, target })
}
child = child.parent
Expand Down

0 comments on commit c9fb533

Please sign in to comment.