mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix linter warnings
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user