Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Added check prior to triggering pre-processing

Tom Carielloeebb61e4a242
diff --git a/web/js/containers/tour.js b/web/js/containers/tour.js
index 42c5d2002..56d4a41fa 100644
--- a/web/js/containers/tour.js
+++ b/web/js/containers/tour.js
@@ -177,11 +177,13 @@ class Tour extends React.Component {
config,
renderedPalettes,
);
- preProcessStepLink(
- `${currentStory.steps[1].stepLink}&tr=${currentStoryId}${transitionParam}${kioskParam}&em=${isEmbedModeActive}`,
- config,
- promiseImageryForTour,
- );
+ if (currentStory.steps.length > 1) {
+ preProcessStepLink(
+ `${currentStory.steps[1].stepLink}&tr=${currentStoryId}${transitionParam}${kioskParam}&em=${isEmbedModeActive}`,
+ config,
+ promiseImageryForTour,
+ );
+ }
}
fetchMetadata(currentStory, stepIndex) {