Skip to content

Commit

Permalink
Fix typos and sort queries in index.vue and
Browse files Browse the repository at this point in the history
members-query.ts
  • Loading branch information
HuakunShen committed Nov 8, 2023
1 parent e48e5ba commit ce2b215
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/person.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
defineProps<{ name: string; avatar?: string; website?: string }>();
defineProps<{ name: string; avatar?: string; website: string }>();
const config = useRuntimeConfig();
/**
Expand Down
2 changes: 1 addition & 1 deletion composables/members-query.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const useAllFacultyMemberQuery = () =>
queryContent("members", "faculty");
export const useAllStaffAndPostDocQuery = () => queryContent("members", "staff-n-postdoc");
export const useAllStaffAndPostDocQuery = () => queryContent("members", "staff-and-postdoc");
export const useAllGradStudentQuery = () =>
queryContent("members", "grad-student");

Expand Down
1 change: 1 addition & 0 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const facultyMembers = await useAllFacultyMemberQuery()
const postDocMembers = await useAllStaffAndPostDocQuery()
.sort({ name: 1 })
.find();
const gradStudents = await useAllGradStudentQuery().sort({ name: 1 }).find();
const alumnis = await useAllAlumniQuery().sort({ year: -1 }).find();
</script>
Expand Down

0 comments on commit ce2b215

Please sign in to comment.