Skip to content

Commit 26186fb

Browse files
committed
Fix GitHub Actions
1 parent 64813f9 commit 26186fb

File tree

6 files changed

+266
-263
lines changed

6 files changed

+266
-263
lines changed

app/components/aside/AsideNewsletter.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ async function subscribe() {
2525
});
2626
status.value = 'success';
2727
}
28-
catch (error) {
28+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
29+
catch (error: any) {
2930
status.value = 'error';
30-
errorMessage.value = error.message;
31+
errorMessage.value = error.message || 'An error occurred';
3132
}
3233
}
3334
</script>

app/components/content/ArticleCards.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const items = props.paths.map((item) => {
1111
title: page?.title,
1212
description: page?.description,
1313
_path: page?._path,
14-
};
14+
} as ArticleNavItem;
1515
});
1616
</script>
1717

app/components/pages/ArticleArea.global.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ const allTags = computed(() => {
6969
}
7070
const tagIdsArray = Array.from(tagIds);
7171
72-
return tagIdsArray.map(tagId => tags.find(tag => tag.id === tagId)).sort(
72+
return tagIdsArray.map(tagId => tags.find(tag => tag.id === tagId)).filter(
73+
(tag): tag is ArticleTag => tag !== undefined,
74+
).sort(
7375
(a, b) => a?.name?.localeCompare(b?.name || '') ?? 0,
7476
);
7577
});

app/pages/[...slug].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ defineOgImage({
6464
props: {
6565
title: page.value.title,
6666
description: page.value.description,
67-
badgeLabel: page.value.tags?.map(tag => tag.name).join(', ') || undefined,
67+
badgeLabel: page.value.tags?.map((tag: ArticleTag) => tag.name).join(', ') || undefined,
6868
},
6969
});
7070
</script>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"@scalar/cli": "^0.2.220",
4949
"nodemon": "^3.1.7",
5050
"sass": "^1.77.8",
51-
"typescript": "^5.6.3",
51+
"typescript": "5.5.4",
5252
"vue-tsc": "^2.1.6"
5353
},
5454
"packageManager": "[email protected]",

0 commit comments

Comments
 (0)