diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-17 22:55:05 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-17 22:55:05 +0800 |
commit | 4d275cc5916c2802bd1d0b64766409daff5006db (patch) | |
tree | c7ce898f865d2570cc358e0e1740a571aded72f1 /packages/react-shared/src | |
parent | e18f66e5b7a099101c8d9273391744eacd705f59 (diff) | |
download | dexon-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
Diffstat (limited to 'packages/react-shared/src')
-rw-r--r-- | packages/react-shared/src/components/nested_sidebar_menu.tsx | 6 |
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(() => { |