Skip to content

Commit

Permalink
Merge pull request BloomBooks#526 from StephenMcConnel/BL-12842-Ensur…
Browse files Browse the repository at this point in the history
…eLevelsBelowTopics

Ensure topic subcollection displays levels (BL-12842) (BloomBooks#526)
  • Loading branch information
andrew-polk authored Nov 7, 2023
2 parents f3df089 + b96274a commit f890849
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/CollectionSubsetPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ export const CollectionSubsetPage: React.FunctionComponent<{
}
}
}
// Showing books by topic, but not by level, so show by level under the topic.
else if ((props.collectionName + props.filters).indexOf("topic:") >= 0) {
subList = <ByLevelGroups collection={subcollection} />;
}
// e.g. CollectionLayout is "by-language/by-topic"
else if (subcollection.layout === "by-topic") {
subList = <ByTopicsGroups collection={subcollection} />;
Expand Down

0 comments on commit f890849

Please sign in to comment.