kopia lustrzana https://github.com/elk-zone/elk
chore: correctly cast error type
rodzic
bc3c013c07
commit
5e04077371
|
@ -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
|
||||||
|
|
Ładowanie…
Reference in New Issue