diff --git a/src/nationalarchives/components/nested-navigation/_index.scss b/src/nationalarchives/components/nested-navigation/_index.scss index 8bc021d..0364815 100644 --- a/src/nationalarchives/components/nested-navigation/_index.scss +++ b/src/nationalarchives/components/nested-navigation/_index.scss @@ -3,7 +3,7 @@ --directory-icon-width: 24px; --item-expander-btn-width: 40px; - overflow: auto auto; + overflow: auto; max-height: 70vh; margin-bottom: 1em; } diff --git a/src/nationalarchives/components/nested-navigation/nested-navigation.ts b/src/nationalarchives/components/nested-navigation/nested-navigation.ts index a7eff7a..50e59a3 100644 --- a/src/nationalarchives/components/nested-navigation/nested-navigation.ts +++ b/src/nationalarchives/components/nested-navigation/nested-navigation.ts @@ -215,7 +215,7 @@ export class NestedNavigation { const label = li.querySelector("label"); if (label?.firstChild?.textContent !== null) { this.displaySelected( - isSelected ? "" : label?.firstChild?.textContent?.trim() ?? "", + isSelected ? "" : (label?.firstChild?.textContent?.trim() ?? ""), ); } else { this.displaySelected("");