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
@@ -19,6 +19,8 @@ export const init = () => {
|
||||
dispatcherQueue.queue.get(id)(null, payload);
|
||||
dispatcherQueue.queue.delete(id);
|
||||
};
|
||||
|
||||
dispatch({ action: 'initDb' });
|
||||
};
|
||||
|
||||
const dispatch = (
|
||||
|
||||
@@ -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
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user