Skip to content

Commit

Permalink
add a todo for a know limitation in map data updating
Browse files Browse the repository at this point in the history
  • Loading branch information
bcdrme committed Nov 10, 2024
1 parent cf02a7a commit 5a3fcd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/store/maps.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ async function init() {
if (!existingMap) {
return db.maps.put(map) as Promise<unknown>;
} else {
//TODO this has a limitation. if a field change from defined to undefined it will not be updated.
return db.maps.update(map.springName, { ...map }) as Promise<unknown>;
}
});
Expand Down

0 comments on commit 5a3fcd2

Please sign in to comment.