Skip to content

Commit

Permalink
Merge pull request #69 from equinor/handle_empty_array_from_detail_ge…
Browse files Browse the repository at this point in the history
…tData

Don't create detail-containers on empty array
  • Loading branch information
HavardNJ authored Jun 1, 2023
2 parents 28e7e20 + 91a022e commit 28203fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@equinor/videx-map",
"version": "1.14.0",
"version": "1.14.1",
"description": "Component for Pixi-overlay in Leaflet.",
"main": "dist/index.js",
"module": "dist/index.esm.js",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/wellbores/data/WellboreData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export class WellboreData {

// Get relative positions along wellbore, if available for data
const relative = detail.getRelative(this.data);
if (!relative) return;
if (!Array.isArray(relative) || relative.length === 0) return;

const container = new PIXI.Container();
container.visible = detail.visible;
Expand Down

0 comments on commit 28203fa

Please sign in to comment.