diff options
Diffstat (limited to 'packages/client/src/views/Repository.vue')
-rw-r--r-- | packages/client/src/views/Repository.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/client/src/views/Repository.vue b/packages/client/src/views/Repository.vue index c91491c..8586b2a 100644 --- a/packages/client/src/views/Repository.vue +++ b/packages/client/src/views/Repository.vue @@ -11,10 +11,11 @@ <script lang="ts"> import { defineComponent, Ref, ref } from "vue"; import { Router } from "vue-router"; +import { Repository } from "shared_types"; +import { getParam } from "../util/util"; import RepositoryHeader from "../components/RepositoryHeader.vue"; import RepositoryNavbar from "../components/RepositoryNavbar.vue"; -import { getParam } from "../util/util"; export default defineComponent({ name: "Repository", @@ -37,7 +38,7 @@ export default defineComponent({ }); if(repository_data) { - const data = (await repository_data.json()).data; + const data: Repository = (await repository_data.json()).data; name.value = data.name; description.value = data.description; has_readme.value = data.has_readme; |