Refreshing GPX list after importing a new GPX.

This commit is contained in:
vdv committed 2022-11-27 18:24:17 +01:00
1 parent 37fd31a040
commit 6c2573ba8b
6 files changed
+16 -12

No files matched your search

+2
View File
@@ -19,6 +19,8 @@ export const init = () => {
dispatcherQueue.queue.get(id)(null, payload);
dispatcherQueue.queue.delete(id);
};
dispatch({ action: 'initDb' });
};
const dispatch = (
+1
View File
@@ -33,6 +33,7 @@ onmessage = async function (e) {
const { id, payload } = e.data;
var returnValue: any = 'unknownAction';
if (payload.action in actions) {
console.log({ caller: 'dispatcher-worker / awaiting', id, payload });
returnValue = await actions[<keyof typeof actions>payload.action](
payload.params
);