Skip to content

Commit

Permalink
Fix wells not being checked (#3776)
Browse files Browse the repository at this point in the history
  • Loading branch information
LocalNewsTV authored Jan 8, 2025
1 parent f053c53 commit 9ea5aea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/utils/closestWellsHelpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import polygonToLine from '@turf/polygon-to-line';
import inside from '@turf/inside';
import buffer from '@turf/buffer';
import { getDataFromDataBCv2 } from './WFSConsumer';
import { selectNetworkConnected } from 'state/reducers/network';
import { selectNetworkState } from 'state/reducers/network';
import { select } from 'redux-saga/effects';

//gets layer data based on the layer name
export function* getClosestWells(inputGeometry) {
const firstFeature = inputGeometry;
const networkState = yield select(selectNetworkConnected);
const networkState = yield select(selectNetworkState);
//get the map extent as geoJson polygon feature
const bufferedGeo = buffer(firstFeature, 1, { units: 'kilometers' });
//if well layer is selected
Expand Down

0 comments on commit 9ea5aea

Please sign in to comment.