Skip to content

Commit

Permalink
fix(structure): adapt type-safety checks/alternatives
Browse files Browse the repository at this point in the history
Brings back the list of all staff
  • Loading branch information
davidsandoz committed Apr 17, 2024
1 parent 5419411 commit 9d5080c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pages/structure/_group.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default defineComponent({
components: { stStaffPerson },
data() {
return {
groupSlug: null as string | null,
groupSlug: undefined as string | undefined,
group: undefined as Group | undefined,
people: [] as Person[],
breadcrumb: [
Expand All @@ -53,8 +53,9 @@ export default defineComponent({
if (this.groupSlug) {
this.group = await this.$cmsService.getGroup({ slug: this.groupSlug });
this.people = await this.$cmsService.getStaff({ groupSlug: this.groupSlug });
}
this.people = await this.$cmsService.getStaff({ groupSlug: this.groupSlug });
},
head() {
return {
Expand Down

0 comments on commit 9d5080c

Please sign in to comment.