diff --git a/package-lock.json b/package-lock.json index 8d66690f..b196e3e2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@equinor/esv-intersection", - "version": "3.0.8", + "version": "3.0.9", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 04a20c12..3d44441f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@equinor/esv-intersection", - "version": "3.0.8", + "version": "3.0.9", "description": "Intersection component package with testing and automatic documentation.", "type": "module", "exports": { diff --git a/src/datautils/seismicimage.ts b/src/datautils/seismicimage.ts index b43467a4..69ce1d01 100644 --- a/src/datautils/seismicimage.ts +++ b/src/datautils/seismicimage.ts @@ -132,7 +132,7 @@ export async function generateSeismicSliceImage( let offset = 0; const colorFactor = (colorTableSize - 1) / domain.difference; - let pos = options?.isLeftToRight == null ? trajectory[0][0] : trajectory[trajectory.length - 1][0]; + let pos = options?.isLeftToRight ? trajectory[0][0] : trajectory[trajectory.length - 1][0]; const step = (length / width) * (options?.isLeftToRight ? -1 : 1);