Skip to content

Commit a8cbc09

Browse files
committed
Small improvement to storybook story
1 parent 3abdb9b commit a8cbc09

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/map-interface/src/location-details/location-details.stories.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ export function PhysiographyExample() {
4646
export function MacrostratLinkedDataExample() {
4747
const mapInfo = fetchMapInfo(lng, lat, zoom);
4848

49+
if (mapInfo == null) {
50+
return null;
51+
}
52+
4953
const source =
5054
mapInfo && mapInfo?.mapData && mapInfo?.mapData.length
5155
? mapInfo?.mapData[0]

0 commit comments

Comments
 (0)