mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-26 09:22:14 +00:00
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:
parent
e8c517748f
commit
4a358cd36f
@ -288,8 +288,8 @@ const GlossaryPageV1 = () => {
|
|||||||
handleChildLoading(true);
|
handleChildLoading(true);
|
||||||
const hierarchy = getTermPosFromGlossaries(arrGlossary, dataFQN);
|
const hierarchy = getTermPosFromGlossaries(arrGlossary, dataFQN);
|
||||||
if (hierarchy.length < 2) {
|
if (hierarchy.length < 2) {
|
||||||
setSelectedData(arrGlossary[hierarchy[0]]);
|
setSelectedData(dataFQN ? arrGlossary[hierarchy[0]] : arrGlossary[0]);
|
||||||
handleSelectedKey(dataFQN);
|
handleSelectedKey(dataFQN ? dataFQN : arrGlossary[0]?.name);
|
||||||
if (!expandedKey.length) {
|
if (!expandedKey.length) {
|
||||||
handleExpandedKey([dataFQN], true);
|
handleExpandedKey([dataFQN], true);
|
||||||
}
|
}
|
||||||
|
@ -148,6 +148,7 @@
|
|||||||
.activeCategory {
|
.activeCategory {
|
||||||
border-left: 2px solid @primary;
|
border-left: 2px solid @primary;
|
||||||
background: @primary-light;
|
background: @primary-light;
|
||||||
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mt-0 {
|
.mt-0 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user