From 2e5d52b6ace5b2157fedcf2f79cae5b30b6107ec Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Fri, 23 Oct 2020 22:39:01 +1100 Subject: [PATCH] Added more logging to getMapFromDB to test private browsing error --- src/contexts/MapDataContext.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/contexts/MapDataContext.js b/src/contexts/MapDataContext.js index d2ef3c6..472b81f 100644 --- a/src/contexts/MapDataContext.js +++ b/src/contexts/MapDataContext.js @@ -219,7 +219,10 @@ export function MapDataProvider({ children }) { } 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);