Skip to content

Commit

Permalink
Update packages/clients/diplan/src/store/utils/enrichWithMetaServices.ts
Browse files Browse the repository at this point in the history
apply suggestion "paraphrase"

Co-authored-by: Pascal Röhling <[email protected]>
  • Loading branch information
warm-coolguy and dopenguin authored Feb 26, 2025
1 parent ea52322 commit 0603ef0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ export const enrichWithMetaServices = (
fetchLayerId: id,
projectionCode: map.getView().getProjection().getCode(),
})
.then((resolution) =>
.then((response) =>
rawLayerList.getLayerWhere({ id }).typ === 'WFS'
? parseWfsResponse(resolution, undefined, false)
: (resolution.json() as Promise<FeatureCollection>)
? parseWfsResponse(response, undefined, false)
: (response.json() as Promise<FeatureCollection>)
)
.then(
(featuresFromBbox) =>
Expand Down

0 comments on commit 0603ef0

Please sign in to comment.