Skip to content

Commit

Permalink
Show by level after topic + language (BL-12859)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenMcConnel committed Aug 6, 2024
1 parent 2aff3fb commit 8ef5c06
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 8ef5c06

Please sign in to comment.