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/RepositoryAbout.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/client/src/views/RepositoryAbout.vue') diff --git a/packages/client/src/views/RepositoryAbout.vue b/packages/client/src/views/RepositoryAbout.vue index dc759d1..c72ee12 100644 --- a/packages/client/src/views/RepositoryAbout.vue +++ b/packages/client/src/views/RepositoryAbout.vue @@ -35,8 +35,8 @@ export default defineComponent({ const is_loading: Ref = ref(true); const fetch_failed: Ref = ref(""); - const fetchReadme = async(repository: string) => { - const readme_data: Tree = await fetchData(`repos/${repository}/tree?path=README.md`, fetch_failed, is_loading, "tree"); + async function fetchReadme(repository: string) { + const readme_data = await fetchData(`repos/${repository}/tree?path=README.md`, fetch_failed, is_loading, "tree") as Tree; if(readme_data && typeof readme_data.content === "string") { readme.value = readme_data.content; @@ -58,4 +58,4 @@ export default defineComponent({ + \ No newline at end of file -- cgit v1.2.3-18-g5258