Skip to content

Commit

Permalink
App.vue: Small adjustment to insertPrefLabel
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Feb 25, 2022
1 parent b26049b commit fdf90d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ export default {
let prefLabel = this.$jskos.prefLabel(getItem(this.selected.concept[isLeft]), { fallbackToUri: false })
// Adjust prefLabel by removing everything from the first non-whitespace, non-letter character.
let regexResult = /^[\s\wäüöÄÜÖß]*\w/.exec(prefLabel)
this.setConceptSearchQuery(isLeft, regexResult ? regexResult[0] : "")
this.setConceptSearchQuery(isLeft, regexResult ? regexResult[0] : prefLabel)
},
setConceptSearchQuery(isLeft, query, open) {
let conceptSchemeSelection = _.get(this, `$refs.conceptSchemeSelection${isLeft ? "Right" : "Left"}[0]`)
Expand Down

0 comments on commit fdf90d9

Please sign in to comment.