Skip to content

Commit

Permalink
Team Pages without Resources are 404 (#142)
Browse files Browse the repository at this point in the history
* Fix typo in type value in prerender.ts

* Update type property in Team interface
  • Loading branch information
bryantgillespie authored Mar 20, 2024
1 parent 06f74ca commit 88d29f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/prerender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default defineNuxtModule({
_or: [
{
type: {
_eq: 'core-team',
_eq: 'core_team',
},
},
{
Expand Down
2 changes: 1 addition & 1 deletion types/schema/content/team.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ export interface Team {
image: string | File | null;
links: { [key: string]: any } | null;
slug: string;
type: string | null;
type: 'core_team' | 'advisor' | 'investor' | 'key_contributor' | 'key_sponsor' | 'guest_author' | null;
resources: string[] | Resource[] | null;
}

0 comments on commit 88d29f7

Please sign in to comment.