Skip to content

Commit

Permalink
Merge pull request #528 from StephenMcConnel/BL-12859-AfterTopic+Lang…
Browse files Browse the repository at this point in the history
…uage,Level

Show by level after topic + language (BL-12859) (#528)
  • Loading branch information
andrew-polk authored Aug 6, 2024
2 parents 2aff3fb + 8ef5c06 commit 45efa09
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/ByLanguageCards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,15 @@ export function makeVirtualCollectionOfBooksInCollectionThatHaveLanguage(
// But we will end up coming back through eventually with the language information. So then we set it to "My Collection - English".
if (isForCollectionPage) setBloomLibraryTitle(label);

const layoutOfLanguagePage =
let layoutOfLanguagePage =
baseCollection.layout.split("/")[1] || "all-books";
if (
baseCollection.filter &&
baseCollection.filter.topic &&
!baseCollection.filter.leveledReaderLevel
) {
layoutOfLanguagePage = "by-level";
}
const baseCollectionFilter =
baseCollection.filter ??
getFilterForCollectionAndChildren(baseCollection);
Expand Down

0 comments on commit 45efa09

Please sign in to comment.