diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2020-10-28 16:16:08 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2020-10-29 13:12:44 +0100 |
| commit | 9ca15a449584bf80a7c2de31415ef33aa8dd0c8e (patch) | |
| tree | 808b670d2e8472075c3506d503c77e184685216e /gui/src/renderer/components | |
| parent | 68433afb080e8c6cab4766daee7dd884ad721096 (diff) | |
| download | mullvadvpn-9ca15a449584bf80a7c2de31415ef33aa8dd0c8e.tar.xz mullvadvpn-9ca15a449584bf80a7c2de31415ef33aa8dd0c8e.zip | |
Disallow ts-comments other than ts-ignore and remove one ts-ignore
Diffstat (limited to 'gui/src/renderer/components')
| -rw-r--r-- | gui/src/renderer/components/LocationList.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gui/src/renderer/components/LocationList.tsx b/gui/src/renderer/components/LocationList.tsx index 2f2b440dfc..2f8d44048e 100644 --- a/gui/src/renderer/components/LocationList.tsx +++ b/gui/src/renderer/components/LocationList.tsx @@ -124,8 +124,9 @@ export default class LocationList<SpecialValueType> extends React.Component< if (typeof this.props.selectedElementRef === 'function') { this.props.selectedElementRef(value); } else { - // @ts-ignore - this.props.selectedElementRef.current = value; + const ref = this.props + .selectedElementRef as React.MutableRefObject<React.ReactInstance | null>; + ref.current = value; } } } |
