fix: hash displaying as encoded (#277)

Co-authored-by: adeel.tajamul <adeel.tajamul@arbisoft.com>
This commit is contained in:
Muhammad Adeel Tajamul
2022-09-02 17:26:38 +05:00
committed by GitHub
parent 02202e2c07
commit c45c468a19

View File

@@ -24,7 +24,8 @@ function LegacyBreadcrumbMenu() {
const currentTopic = useSelector(selectTopic(currentTopicId));
const currentCategory = category || currentTopic?.categoryId;
const topicsInCategory = useSelector(selectTopicsInCategory(currentCategory));
const decodedCurrentCategory = String(currentCategory).replace('%23', '#');
const topicsInCategory = useSelector(selectTopicsInCategory(decodedCurrentCategory));
const nonCoursewareTopics = useSelector(selectNonCoursewareTopics);
const categories = useSelector(selectCategories);
const isNonCoursewareTopic = currentTopic && !currentCategory;
@@ -45,7 +46,7 @@ function LegacyBreadcrumbMenu() {
/>
) : (
<BreadcrumbDropdown
currentItem={currentCategory}
currentItem={decodedCurrentCategory}
itemLabelFunc={(catId) => catId}
itemActiveFunc={(catId) => catId === currentCategory}
items={categories}