aboutsummaryrefslogtreecommitdiff
path: root/packages/client/src/views/Home.vue
diff options
context:
space:
mode:
Diffstat (limited to 'packages/client/src/views/Home.vue')
-rw-r--r--packages/client/src/views/Home.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/client/src/views/Home.vue b/packages/client/src/views/Home.vue
index 1edafff..1d4cfa1 100644
--- a/packages/client/src/views/Home.vue
+++ b/packages/client/src/views/Home.vue
@@ -52,8 +52,8 @@ export default defineComponent({
const is_loading: Ref<boolean> = ref(true);
const fetch_failed: Ref<string> = ref("");
- const fetchProjects = async() => {
- const projects_data: RepositorySummary[] = await fetchData("repos", fetch_failed, is_loading, "projects");
+ async function fetchProjects() {
+ const projects_data = await fetchData("repos", fetch_failed, is_loading, "projects") as RepositorySummary[];
projects_data.reduce((result: RepositorySummary[], project) => {
if(typeof project.last_updated === "number") {
@@ -101,4 +101,4 @@ export default defineComponent({
}
}
-</style>
+</style> \ No newline at end of file