Skip to content

Commit 5ef0f04

Browse files
authored
Merge pull request #14885 from guardian/fix-multiple-secondary-onwards-on-gallery
fix multiple secondary onwards on gallery
2 parents c44ee2c + a44336d commit 5ef0f04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dotcom-rendering/src/components/OnwardsUpper.importable.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,9 @@ export const OnwardsUpper = ({
309309
// For galleries: they already have a "more galleries" container,
310310
// so we can only allow one more onwards container
311311
const canHaveCuratedContent =
312-
format.design === ArticleDesign.Gallery ? isUndefined(url) : true;
312+
format.design === ArticleDesign.Gallery
313+
? isUndefined(url) && !hasStoryPackage
314+
: true;
313315

314316
const hasOnwardsContainer = !!url;
315317
const showCuratedContainer =

0 commit comments

Comments
 (0)