Improved actor filter layout behavior.

This commit is contained in:
2020-02-23 05:23:07 +01:00
parent 95ed67b1fe
commit 968eb07472
2 changed files with 18 additions and 2 deletions

View File

@@ -181,6 +181,7 @@ function initActorActions(store, _router) {
if (actorSlug) {
return fetchActorBySlug(actorSlug);
}
console.log(genders);
const { actors } = await graphql(`
query Actors(
@@ -230,7 +231,8 @@ function initActorActions(store, _router) {
`, {
limit,
letter,
genders,
genders: genders.filter(Boolean),
genderNull: genders.some(gender => gender === null),
});
return actors.map(actor => curateActor(actor));