Added check for database in getMapFromDB

This commit is contained in:
Mitchell McCaffrey 2020-10-23 20:50:05 +11:00
parent b4e882a414
commit 3ce6203745

View File

@ -219,6 +219,7 @@ export function MapDataProvider({ children }) {
}
async function getMapFromDB(mapId) {
if (!database) return;
return await database.table("maps").get(mapId);
}