Skip to content

Commit

Permalink
Fix compile issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shedaniel committed Aug 24, 2022
1 parent 233aefa commit 0429f4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/mappings/MappingsEntryBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export default defineComponent({
this.$nextTick(() => {
for (let entry of Object.entries(this.source.split('\n'))) {
if ((entry[1] + "").includes((this.entry.type === "class" ? "class " : " ") + onlyClass(getOptimumName(this.entry)) + (this.entry.type === "method" ? "(" : ""))) {
this.$refs['source-line-' + entry[0]][0].scrollIntoView({behavior: 'smooth', block: 'center'})
(this.$refs['source-line-' + entry[0]] as HTMLFormElement)[0].scrollIntoView({behavior: 'smooth', block: 'center'})
break
}
}
Expand Down Expand Up @@ -313,7 +313,7 @@ export default defineComponent({
this.source = ''
if (this.expandSource) {
reqSource(this.namespace.id, this.version, this.entry.ownerNamed ?? this.entry.ownerIntermediary ?? this.entry.named ?? this.entry.intermediary).then(value => {
reqSource(this.namespace!!.id, this.version!!, this.entry.ownerNamed ?? this.entry.ownerIntermediary ?? this.entry.named ?? this.entry.intermediary).then(value => {
this.source = value.data
}).catch(reason => {
addAlert({
Expand Down

0 comments on commit 0429f4c

Please sign in to comment.