From 5e04077371938484fd5413a50f90deb14a5fda6a Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 21 Jun 2025 20:13:54 +0200 Subject: [PATCH] chore: correctly cast error type --- app/components/publish/PublishWidget.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/publish/PublishWidget.vue b/app/components/publish/PublishWidget.vue index e3d2757f..8c25f239 100644 --- a/app/components/publish/PublishWidget.vue +++ b/app/components/publish/PublishWidget.vue @@ -283,7 +283,7 @@ const detectLanguage = useDebounceFn(async () => { } catch (e) { // if error or abort we end up there - if (e.name !== 'AbortError') { + if ((e as Error).name !== 'AbortError') { console.error(e) } draft.value.params.language = preferredLanguage.value