Minor modifications

This commit is contained in:
vdv committed 2022-12-12 21:35:00 +01:00
1 parent daed8e5dc1
commit 56c9eb37bb
5 files changed
+24 -9

No files matched your search

+9 -2
View File
@@ -71,8 +71,15 @@ const GpxImport: Component = () => {
// }
};
const handleClose = () => {
setFilesToImport(undefined);
const handleClose = (event: any, reason?: string) => {
console.log({
caller: 'GpxImport / handleClose',
event,
reason,
});
if (reason === undefined) {
setFilesToImport(undefined);
}
};
return (