Skip to content

Commit

Permalink
web: Fix typeerror
Browse files Browse the repository at this point in the history
  • Loading branch information
schneefux committed Mar 26, 2024
1 parent d98983a commit eef4913
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/pages/tier-list/mode/_mode/map/_map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,15 @@ export default defineComponent({
const lightboxOpen = ref(false)
const aiReport = useAsync(async () => {
if (event.value == undefined) {
if (routeParams.value == undefined) {
return null
}
try {
return await $api.report.byModeMap.query({
localeIso: i18n.locale.value,
mode: event.value.mode,
map: event.value.map,
mode: routeParams.value.mode as string,
map: routeParams.value.map as string,
})
} catch (err) {
return null
Expand Down

0 comments on commit eef4913

Please sign in to comment.