aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-17 22:55:05 +0800
committerFabio Berger <me@fabioberger.com>2018-10-17 22:55:05 +0800
commit4d275cc5916c2802bd1d0b64766409daff5006db (patch)
treec7ce898f865d2570cc358e0e1740a571aded72f1
parente18f66e5b7a099101c8d9273391744eacd705f59 (diff)
downloaddexon-sol-tools-4d275cc5916c2802bd1d0b64766409daff5006db.tar
dexon-sol-tools-4d275cc5916c2802bd1d0b64766409daff5006db.tar.gz
dexon-sol-tools-4d275cc5916c2802bd1d0b64766409daff5006db.tar.bz2
dexon-sol-tools-4d275cc5916c2802bd1d0b64766409daff5006db.tar.lz
dexon-sol-tools-4d275cc5916c2802bd1d0b64766409daff5006db.tar.xz
dexon-sol-tools-4d275cc5916c2802bd1d0b64766409daff5006db.tar.zst
dexon-sol-tools-4d275cc5916c2802bd1d0b64766409daff5006db.zip
nit: don't init scrolledToId
-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(() => {