Skip to content

Commit

Permalink
MappingBrowser: Fix issue when showing mappings for concordance
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Nov 18, 2021
1 parent f97c10a commit 647c36d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/MappingBrowser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ export default {
// Change tab to mapping search.
this.tab = this.tabIndexes.search
// Clear all other search parameters.
this.clearSearchFilter()
this.clearSearchFilter({ ignoredLock: true })
// Change concordance.
this.searchFilterInput.partOf = concordance.uri
// Search.
Expand All @@ -1036,7 +1036,7 @@ export default {
return filter && (this.$jskos.compare(scheme, { uri: filter }) || this.$jskos.notation(scheme).toLowerCase() == filter.toLowerCase())
})
},
clearSearchFilter() {
clearSearchFilter({ ignoredLock = false } = {}) {
this.searchFilterInput = {
fromScheme: (this.searchFilterInput && this.searchFilterInput.fromScheme) || "",
fromNotation: "",
Expand All @@ -1047,10 +1047,10 @@ export default {
type: null,
partOf: null,
}
if (!this.lockScheme[true]) {
if (ignoredLock || !this.lockScheme[true]) {
this.searchFilterInput.fromScheme = ""
}
if (!this.lockScheme[false]) {
if (ignoredLock || !this.lockScheme[false]) {
this.searchFilterInput.toScheme = ""
}
this.searchFilterExtended = false
Expand Down

0 comments on commit 647c36d

Please sign in to comment.