Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nilscb committed Sep 20, 2023
1 parent bcc4d0b commit 7fe0a50
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,17 +244,17 @@ export default class WellsLayer extends CompositeLayer<WellsLayerProps> {
initializeState(): void {
let data = this.props.data as unknown as FeatureCollection;
if (typeof data !== "undefined" && !isEqual(data, [])) {
if (!this.props.ZIncreasingDownwards) {
data = invertPath(data);
}

const refine = this.props.refine;
data = refine
? splineRefine(data) // smooth well paths.
: data;

const coarseData = coarsenWells(data);

if (!this.props.ZIncreasingDownwards) {
data = invertPath(data);
}

this.setState({
...this.state,
data,
Expand Down

0 comments on commit 7fe0a50

Please sign in to comment.