Skip to content

Commit

Permalink
fix(structure): add type-safety checks/alternatives
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsandoz committed Feb 9, 2024
1 parent 18b9df7 commit 6736c45
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pages/structure/_group.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@ export default Vue.extend({
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 All @@ -75,7 +74,7 @@ export default Vue.extend({
return this.group ? this.group.name : this.$t('structure.staff.title').toString();
},
groupDescription(): string {
return this.group ? this.group.description : this.$t('structure.staff.description').toString();
return this.group ? this.group.description || '' : this.$t('structure.staff.description').toString();
},
},
});
Expand Down

0 comments on commit 6736c45

Please sign in to comment.