From 4bbf220296765a20c3ba03c5351b21618a835424 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 25 Jul 2021 22:34:22 +0200 Subject: Reformated the client code a bit --- packages/client/src/views/Home.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/client/src/views/Home.vue') 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 = ref(true); const fetch_failed: Ref = 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({ } } - + \ No newline at end of file -- cgit v1.2.3-18-g5258