mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-02 16:52:31 +00:00
remove duplicate logic
This commit is contained in:
@@ -88,7 +88,6 @@ export function createGPXFileStore(): GPXFileStore {
|
||||
}
|
||||
}
|
||||
if (global) {
|
||||
console.log("Global patch", patch);
|
||||
notify();
|
||||
}
|
||||
updateUndoRedo();
|
||||
@@ -181,19 +180,11 @@ export function createGPXFileStore(): GPXFileStore {
|
||||
draft.delete(fileId);
|
||||
});
|
||||
});
|
||||
selectedFiles.update($selected => {
|
||||
$selected.clear();
|
||||
return $selected;
|
||||
});
|
||||
},
|
||||
deleteAllFiles: () => {
|
||||
applyToGlobalStore((draft) => {
|
||||
draft.clear();
|
||||
});
|
||||
selectedFiles.update($selected => {
|
||||
$selected.clear();
|
||||
return $selected;
|
||||
});
|
||||
},
|
||||
getFileStore: (id: string) => {
|
||||
return filestores.get(id);
|
||||
|
Reference in New Issue
Block a user