Updated update map

This commit is contained in:
Mitchell McCaffrey
2020-10-24 00:01:46 +11:00
parent b70bcdabd2
commit f8d7f7f19f
3 changed files with 9 additions and 8 deletions

View File

@@ -145,7 +145,9 @@ export function MapDataProvider({ children }) {
}
return newMaps;
});
console.log("updated");
const updatedMap = (await database.table("maps").get(id)) || {};
return { ...updatedMap, ...update };
}
async function updateMaps(ids, update) {