chore: correctly cast error type

pull/3317/head
admin 2025-06-21 20:13:54 +02:00
rodzic bc3c013c07
commit 5e04077371
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -283,7 +283,7 @@ const detectLanguage = useDebounceFn(async () => {
} }
catch (e) { catch (e) {
// if error or abort we end up there // if error or abort we end up there
if (e.name !== 'AbortError') { if ((e as Error).name !== 'AbortError') {
console.error(e) console.error(e)
} }
draft.value.params.language = preferredLanguage.value draft.value.params.language = preferredLanguage.value