added condition to show disclosure
This commit is contained in:
parent
b691237d77
commit
b925e42e4a
1 changed files with 7 additions and 3 deletions
|
|
@ -122,7 +122,7 @@ export default function ExtraSidebar(): JSX.Element {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
setSearch("search");
|
setSearch("");
|
||||||
return ret;
|
return ret;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -227,8 +227,12 @@ export default function ExtraSidebar(): JSX.Element {
|
||||||
.map((SBSectionName: keyof APIObjectType, index) =>
|
.map((SBSectionName: keyof APIObjectType, index) =>
|
||||||
Object.keys(dataFilter[SBSectionName]).length > 0 ? (
|
Object.keys(dataFilter[SBSectionName]).length > 0 ? (
|
||||||
<DisclosureComponent
|
<DisclosureComponent
|
||||||
openDisc={search.length == 0 ? false : true}
|
openDisc={
|
||||||
key={index + search}
|
getFilterEdge.length !== 0 || search.length !== 0
|
||||||
|
? true
|
||||||
|
: false
|
||||||
|
}
|
||||||
|
key={index + search + JSON.stringify(getFilterEdge)}
|
||||||
button={{
|
button={{
|
||||||
title: nodeNames[SBSectionName] ?? nodeNames.unknown,
|
title: nodeNames[SBSectionName] ?? nodeNames.unknown,
|
||||||
Icon:
|
Icon:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue