Skip to content

Commit

Permalink
Fix undefined filter config
Browse files Browse the repository at this point in the history
  • Loading branch information
djohalo2 committed Jan 9, 2025
1 parent 7acb9dc commit cbd1321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/queries/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const getAllRawPageMetadataQuery = (config: PageTreeConfig) => `*[_type i
)
.map(key => `"${key}"`)
.join(', ')}]
${config?.filter && ` && ${config.filter}`}
${config?.filter ? ` && ${config.filter}` : ''}
]{
${rawPageMetadataFragment(config)}
}`;
Expand Down

0 comments on commit cbd1321

Please sign in to comment.