Skip to content

Commit

Permalink
VACMS 20190 - fix zips without bbox (#33785)
Browse files Browse the repository at this point in the history
* fix zips without bbox
* tests passing
  • Loading branch information
eselkin authored Jan 2, 2025
1 parent 34dedc1 commit e657a7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ export const genBBoxFromAddress = (query, expandedRadius = false) => {
];
}
const radius = radiusFromBoundingBox(
features,
features?.[0]?.bbox
? features
: [{ ...features[0], bbox: minBounds }],
query?.facilityType === 'provider',
);
dispatch({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Cypress.Commands.add('verifySearchArea', () => {
const clickInterval = 10;

// Zoom in
[...Array(5)].forEach(_ =>
[...Array(15)].forEach(_ =>
// eslint-disable-next-line cypress/no-unnecessary-waiting
cy
.get('.mapboxgl-ctrl-zoom-in')
Expand Down

0 comments on commit e657a7a

Please sign in to comment.