aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/react-shared/src/components/nested_sidebar_menu.tsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/react-shared/src/components/nested_sidebar_menu.tsx b/packages/react-shared/src/components/nested_sidebar_menu.tsx
index fc5ab95fa..f734dc654 100644
--- a/packages/react-shared/src/components/nested_sidebar_menu.tsx
+++ b/packages/react-shared/src/components/nested_sidebar_menu.tsx
@@ -16,7 +16,7 @@ export interface NestedSidebarMenuProps {
}
export interface NestedSidebarMenuState {
- scrolledToId: string;
+ scrolledToId?: string;
}
const styles: Styles = {
@@ -43,9 +43,7 @@ export class NestedSidebarMenu extends React.Component<NestedSidebarMenuProps, N
private _urlIntervalCheckId: number | undefined = undefined;
constructor(props: NestedSidebarMenuProps) {
super(props);
- this.state = {
- scrolledToId: '',
- };
+ this.state = {};
}
public componentDidMount(): void {
this._urlIntervalCheckId = window.setInterval(() => {