Refreshing GPX list after importing a new GPX.
This commit is contained in:
1 parent
37fd31a040
commit
6c2573ba8b
6 files changed
+16
-12
No files matched your search
@@ -9,6 +9,7 @@ import css from './GpxImport.module.css';
|
||||
import { findStartTime } from '../../lib/gpx';
|
||||
import dispatch from '../../workers/dispatcher-main';
|
||||
import { intToGpxId } from '../../lib/ids';
|
||||
import { refetchGpxList } from '../all-gpxes';
|
||||
|
||||
const GpxImport: Component = () => {
|
||||
const onChangeHandler = (event: any) => {
|
||||
@@ -39,6 +40,7 @@ const GpxImport: Component = () => {
|
||||
},
|
||||
},
|
||||
});
|
||||
refetchGpxList();
|
||||
},
|
||||
false
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user