gynecology-fix #114

Merged
amit merged 11 commits from gynecology-fix into main 2026-11-05 10:26:06 +00:00
1 changed files with 12 additions and 0 deletions
Showing only changes of commit 138085751e - Show all commits

View File

@ -191,6 +191,12 @@ export function CollectionTemplateScreen({
}
}}
onItemPress={(item) => {
const primaryLink = item.attributes?.link;
const primaryRefs = getNavigableContentReferences(primaryLink);
if (primaryRefs.length === 1) {
router.push(buildContentReferenceRoute(primaryRefs[0]) as never);
return;
}
const references = Object.values(item.attributes).flatMap((value) =>
getNavigableContentReferences(value),
);
@ -219,6 +225,12 @@ export function CollectionTemplateScreen({
}
}}
onItemPress={(item) => {
const primaryLink = item.attributes?.link;
const primaryRefs = getNavigableContentReferences(primaryLink);
if (primaryRefs.length === 1) {
router.push(buildContentReferenceRoute(primaryRefs[0]) as never);
return;
}
const references = Object.values(item.attributes).flatMap((value) =>
getNavigableContentReferences(value),
);