From 378da4befe3c7c7e0fd4a0839530aaf9ff511d39 Mon Sep 17 00:00:00 2001 From: Jose Buitron Date: Thu, 9 May 2024 10:18:15 -0500 Subject: [PATCH] fix: Added conditional chain for titleTransition --- src/storyMap/components/StoryMapForm/storyMapConfigContext.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storyMap/components/StoryMapForm/storyMapConfigContext.js b/src/storyMap/components/StoryMapForm/storyMapConfigContext.js index ccc479787b..9cd441dfd8 100644 --- a/src/storyMap/components/StoryMapForm/storyMapConfigContext.js +++ b/src/storyMap/components/StoryMapForm/storyMapConfigContext.js @@ -57,7 +57,7 @@ export const StoryMapConfigContextProvider = props => { _.flatMap(ids => ids), _.compact )([ - newConfig.titleTransition.dataLayerConfigId, + newConfig.titleTransition?.dataLayerConfigId, newConfig.chapters.map(chapter => chapter.dataLayerConfigId), ]); return {