Added check for database in getMapFromDB
This commit is contained in:
parent
b4e882a414
commit
3ce6203745
@ -219,6 +219,7 @@ export function MapDataProvider({ children }) {
|
||||
}
|
||||
|
||||
async function getMapFromDB(mapId) {
|
||||
if (!database) return;
|
||||
return await database.table("maps").get(mapId);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user