Skip to content

Commit

Permalink
Merge pull request #48 from Q42/fix/undefined-filter-config
Browse files Browse the repository at this point in the history
Fix undefined filter config
  • Loading branch information
djohalo2 authored Jan 9, 2025
2 parents 7acb9dc + cbd1321 commit 0ccb4ad
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 0ccb4ad

Please sign in to comment.