diff --git a/src/implementations/twig/components/card/card.story.js b/src/implementations/twig/components/card/card.story.js index 9cc2d762e3d..21d24fdc7b7 100644 --- a/src/implementations/twig/components/card/card.story.js +++ b/src/implementations/twig/components/card/card.story.js @@ -30,7 +30,7 @@ const getArgs = (data) => { } if (data.title) { args.title_link = true; - args.title = data.title.path ? data.title.label : data.title; + args.title = data.title.link ? data.title.link.label : data.title; } if (data.description) { args.show_description = true; @@ -199,7 +199,7 @@ const prepareData = (data, args) => { delete clone.tags; } if (!args.title_link) { - delete clone.title.path; + delete clone.title.link; } // Other controls @@ -210,8 +210,8 @@ const prepareData = (data, args) => { clone.description = args.description; } if (clone.title) { - if (clone.title.path) { - clone.title.label = args.title; + if (clone.title.link) { + clone.title.link.label = args.title; } else { clone.title = args.title; } diff --git a/src/implementations/twig/components/content-block/content-block.story.js b/src/implementations/twig/components/content-block/content-block.story.js index 3776c8e248d..4435669fe76 100644 --- a/src/implementations/twig/components/content-block/content-block.story.js +++ b/src/implementations/twig/components/content-block/content-block.story.js @@ -17,7 +17,7 @@ const getArgs = (data) => { args.show_primary_meta = true; } if (data.title) { - args.title = data.title.path ? data.title.label : data.title; + args.title = data.title.link ? data.title.link.label : data.title; } if (data.description) { args.show_description = true; @@ -186,8 +186,8 @@ const prepareData = (data, args) => { // Other controls if (clone.title) { - if (clone.title.path) { - clone.title.label = args.title; + if (clone.title.link) { + clone.title.link.label = args.title; } else { clone.title = args.title; } diff --git a/src/implementations/twig/components/content-item/content-item.story.js b/src/implementations/twig/components/content-item/content-item.story.js index 660392fcddd..4d4bc81db5d 100644 --- a/src/implementations/twig/components/content-item/content-item.story.js +++ b/src/implementations/twig/components/content-item/content-item.story.js @@ -27,7 +27,7 @@ const getArgs = (data) => { args.show_primary_meta = true; } if (data.title) { - args.title = data.title.label; + args.title = data.title.link ? data.title.link.label : data.title; } if (data.description) { args.show_description = true; @@ -241,7 +241,11 @@ const prepareData = (data, args) => { clone.picture.position = args.image_position; } if (clone.title) { - clone.title.label = args.title; + if (clone.title.link) { + clone.title.link.label = args.title; + } else { + clone.title = args.title; + } } if (clone.description) { clone.description = args.description;