diff --git a/src/components/App.tsx b/src/components/App.tsx index 68bd8eb3..0ea104a4 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -877,8 +877,8 @@ export default class App extends React.Component { this.setModal(modalName, !this.state.isOpen[modalName]); } - onSetFileHandle(fileHandle: FileSystemFileHandle | null) { - this.setState({fileHandle: fileHandle}); + onSetFileHandle = (fileHandle: FileSystemFileHandle | null) => { + this.setState({ fileHandle }); } onChangeOpenlayersDebug = (key: keyof AppState["openlayersDebugOptions"], value: boolean) => {