Skip to content

Commit bbd802f

Browse files
authored
Remove old group support for flexible general (#13514)
* Refactor card groups so splash is 3 and all others are not 3 * Support both grouping versions for europe beta change over * remove support for old group config which had splash at group 1
1 parent 34350c4 commit bbd802f

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

dotcom-rendering/src/model/groupCards.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,11 @@ export const groupCards = (
106106
};
107107
}
108108
case 'flexible/general': {
109-
const hasv2Grouping = curated.some(
110-
({ card }) => card.group === '3',
111-
);
112-
const splashGroup = hasv2Grouping ? '3' : '1';
113-
const splash = curated.filter(
114-
({ card }) => card.group === splashGroup,
115-
);
109+
const splash = curated.filter(({ card }) => card.group === '3');
116110

117111
// Backfilled cards will always be treated as 'standard' cards
118112
const standard = [
119-
...curated.filter(({ card }) => card.group !== splashGroup),
113+
...curated.filter(({ card }) => card.group !== '3'),
120114
...backfill,
121115
];
122116

0 commit comments

Comments
 (0)