fix(birthday): show all CMS extra items, remove hardcoded slice(3,6) limit
extraItems now uses slice(3) without end limit — items 4-N all appear in the "Також можна додатково замовити" grid instead of being silently dropped. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
83283ed43c
commit
04e13097da
1 changed files with 2 additions and 2 deletions
|
|
@ -257,8 +257,8 @@ export default async function BirthdayPage() {
|
|||
? cmsPackageItems.slice(0, 3).map(toCard)
|
||||
: FALLBACK_PACKAGE_ITEMS.map(toCard)
|
||||
const extraItems: PackageCardData[] =
|
||||
cmsHasPhotos && cmsPackageItems.length >= 6
|
||||
? cmsPackageItems.slice(3, 6).map(toCard)
|
||||
cmsHasPhotos && cmsPackageItems.length > 3
|
||||
? cmsPackageItems.slice(3).map(toCard)
|
||||
: FALLBACK_EXTRA_ITEMS.map(toCard)
|
||||
|
||||
const whyTitle = (d?.whyTitle as string) ?? 'Чому варто святкувати у Шуміленді'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue