Skip to content

Commit

Permalink
Changed picking types used in tooltip story. (equinor#1121)
Browse files Browse the repository at this point in the history
Co-authored-by: Havard Bjerke <[email protected]>
  • Loading branch information
hkfb and Havard Bjerke authored Jul 12, 2022
1 parent 0c12a0a commit c83145f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion react/src/lib/components/DeckGLMap/DeckGLMap.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ const tooltipImpFunc: TooltipCallback = (
outputString += processPropInfo(properties, true);
} else if (layerName === "WellsLayer") {
const wellsPickInfo = info as WellsPickInfo;
const wellsPickInfoObject = wellsPickInfo.object as FeatureCollection;
const featurePickInfo = info as PickInfo<FeatureCollection>;
const wellsPickInfoObject = featurePickInfo.object as FeatureCollection;
const wellProperties = wellsPickInfoObject.properties;
const name = (wellProperties as { name: string }).name;
outputString += `Well: ${name || ""}`;
Expand Down

0 comments on commit c83145f

Please sign in to comment.