Added more logging to getMapFromDB to test private browsing error

This commit is contained in:
Mitchell McCaffrey 2020-10-23 22:39:01 +11:00
parent 086a7beff3
commit 2e5d52b6ac

View File

@ -219,7 +219,10 @@ export function MapDataProvider({ children }) {
} }
async function getMapFromDB(mapId) { async function getMapFromDB(mapId) {
return await database.table("maps").get(mapId); console.log(mapId, database.table("maps"));
const map = await database.table("maps").get(mapId);
console.log(map);
return map;
} }
const ownedMaps = maps.filter((map) => map.owner === userId); const ownedMaps = maps.filter((map) => map.owner === userId);