create file when routing with no selection

This commit is contained in:
vcoppe
2024-06-15 19:17:27 +02:00
parent ea53a82451
commit fe4cafaa23
3 changed files with 36 additions and 4 deletions

View File

@@ -193,7 +193,7 @@ export async function loadFile(file: File): Promise<GPXFile | null> {
return result;
}
function selectFileWhenLoaded(fileId: string) {
export function selectFileWhenLoaded(fileId: string) {
const unsubscribe = fileObservers.subscribe((files) => {
if (files.has(fileId)) {
tick().then(() => {