Skip to content

Commit

Permalink
Undo deploy to dev changes
Browse files Browse the repository at this point in the history
  • Loading branch information
koechkevin committed Nov 6, 2024
1 parent 2ff029e commit 4206a44
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/climatemappedafrica-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ jobs:
with:
fetch-depth: 0

# Add support for more platforms with QEMU (optional)
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand Down Expand Up @@ -65,7 +61,6 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
context: .
platforms: linux/arm64
target: climatemappedafrica-runner
push: true
tags: "${{ env.IMAGE_NAME }}:${{ github.sha }}"
Expand Down
6 changes: 1 addition & 5 deletions apps/climatemappedafrica/src/lib/data/blockify/hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,12 @@ import {
* This function will be called even when HURUmap is disabled.
* @see @/climatemappedafrica/lib/data/common/index.js
*
* TODO(koech): Handle the case when hurumap?.enabled is undefined/false
* Should we hide the map?
*/
export default async function hero(block, _api, _context, { hurumap }) {
const {
profilePage,
rootGeography: { center, code, hasData: pinRootGeography },
enableHURUMap,
} = hurumap;
const { slug: explorePageSlug } = profilePage;
const { geometries } = await fetchProfileGeography(code.toLowerCase());
const { level } = geometries.boundary?.properties ?? {};
const childLevelMaps = {
Expand All @@ -38,7 +34,7 @@ export default async function hero(block, _api, _context, { hurumap }) {
...block,
boundary,
center,
explorePageSlug: enableHURUMap ? explorePageSlug : null,
explorePageSlug: profilePage?.slug || null,
featuredLocations,
level,
pinRootGeography,
Expand Down

0 comments on commit 4206a44

Please sign in to comment.