Skip to content

Commit

Permalink
Ensure hurumap is not undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
koechkevin committed Nov 6, 2024
1 parent 4206a44 commit e03e84a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/climatemappedafrica/src/lib/data/blockify/hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default async function hero(block, _api, _context, { hurumap }) {
const {
profilePage,
rootGeography: { center, code, hasData: pinRootGeography },
} = hurumap;
} = hurumap ?? { rootGeography: {} };
const { geometries } = await fetchProfileGeography(code.toLowerCase());
const { level } = geometries.boundary?.properties ?? {};
const childLevelMaps = {
Expand Down

0 comments on commit e03e84a

Please sign in to comment.