Fix linter warnings

This commit is contained in:
rijkvanzanten
2021-08-26 16:57:48 -04:00
parent 94a524ca7a
commit 5970a7b473
3 changed files with 5 additions and 5 deletions

View File

@@ -95,7 +95,7 @@ api.interceptors.response.use(onResponse, onError);
export default api;
export function getToken() {
export function getToken(): string {
return api.defaults.headers?.['Authorization']?.split(' ')[1] || null;
}

View File

@@ -1,7 +1,7 @@
<template>
<template v-for="({ highlighted, text }, index) in parts">
<mark v-if="highlighted" :key="index" class="highlight">{{ text }}</mark>
<template v-else>{{ text }}</template>
<template v-for="({ highlighted, text: textContent }, index) in parts">
<mark v-if="highlighted" :key="index" class="highlight">{{ textContent }}</mark>
<template v-else>{{ textContent }}</template>
</template>
</template>

View File

@@ -138,7 +138,7 @@ export default defineLayout<LayoutOptions, LayoutQuery>({
const locationFilterOutdated = ref(false);
function getLocationFilter(useTileBBox?: boolean): Filter | undefined {
function getLocationFilter(): Filter | undefined {
if (geometryOptions.value?.geometryFormat !== 'native') {
return;
}