Fix UI :- Glossary default item after clicking from list to navigation (#7875)

* fix glossary default item after clicking from list to navigation

* changes as per comments

* changes as per comments
This commit is contained in:
Ashish Gupta 2022-10-03 17:25:50 +05:30 committed by GitHub
parent e8c517748f
commit 4a358cd36f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -288,8 +288,8 @@ const GlossaryPageV1 = () => {
handleChildLoading(true);
const hierarchy = getTermPosFromGlossaries(arrGlossary, dataFQN);
if (hierarchy.length < 2) {
setSelectedData(arrGlossary[hierarchy[0]]);
handleSelectedKey(dataFQN);
setSelectedData(dataFQN ? arrGlossary[hierarchy[0]] : arrGlossary[0]);
handleSelectedKey(dataFQN ? dataFQN : arrGlossary[0]?.name);
if (!expandedKey.length) {
handleExpandedKey([dataFQN], true);
}

View File

@ -148,6 +148,7 @@
.activeCategory {
border-left: 2px solid @primary;
background: @primary-light;
font-weight: 600;
}
.mt-0 {