Added more logging to getMapFromDB to test private browsing error
This commit is contained in:
parent
086a7beff3
commit
2e5d52b6ac
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user