Skip to content

Commit

Permalink
Fixed tag name filter
Browse files Browse the repository at this point in the history
  • Loading branch information
fgyimah committed Nov 5, 2024
1 parent da1b18a commit e8289bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/content-delivery/ContentDelivery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export function createClient(
[`locale`]: localeCode ? { $in: [localeCode] } : undefined,
[`status`]: { $in: [Story.Status.PUBLISHED] },
[`visibility`]: { $in: [Story.Visibility.PUBLIC] },
[`tag_names`]: tags?.length ? { $in: [tags] } : undefined,
[`tag.name`]: tags?.length ? { $any: [tags] } : undefined,
}),
include,
});
Expand Down

0 comments on commit e8289bc

Please sign in to comment.