summaryrefslogtreecommitdiffhomepage
path: root/gui/src/renderer
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/renderer')
-rw-r--r--gui/src/renderer/components/LocationList.tsx5
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;
}
}
}