Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
shedaniel committed Jul 8, 2022
1 parent 33246e5 commit d362c2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/mappings/MappingsEntryBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function getBreadcrumbs(hasTranslation: boolean, entry: MappingEntry) {
breadcrumbs.push(named)
}
} else {
let translatedTo = entry.translatedTo
let translatedTo = entry.translatedTo!
let intermediary = getIntermediaryName(entry)!
let named = getDisplayName(entry, false)!
if (intermediary !== named && named) {
Expand Down Expand Up @@ -224,8 +224,8 @@ export default defineComponent({
breadcrumbs() {
return getBreadcrumbs(this.hasTranslation, this.entry)
},
hasTranslation() {
return this.entry.translatedTo && this.translatedToNamespace
hasTranslation(): boolean {
return this.entry.translatedTo !== undefined && this.translatedToNamespace !== undefined
},
},
methods: {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/mappings/MappingsFilterBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default defineComponent({
delocalizeNamespace(string: string) : Namespace {
let id = Object.entries(namespaceLocalizations)
.find(([id, name]) => name === string)
?.[0] ?? this.namespace?.id
?.[0] ?? this.namespace
return this.namespaces.find(ns => ns.id === id) ?? (this.namespace ?? this.namespaces[0])
}
},
Expand Down

0 comments on commit d362c2a

Please sign in to comment.