fix(tcm): remove generic content_ref hijack to restore standard pattern detail navigation
This commit is contained in:
parent
82e6bb0314
commit
058d96f353
|
|
@ -341,14 +341,6 @@ export function ModuleCatalogCardRenderer({
|
|||
onPress,
|
||||
}: CollectionItemRendererProps) {
|
||||
const attributes = item.attributes;
|
||||
const link = attributes?.link as Record<string, unknown> | undefined;
|
||||
const isContentRef = link?.type === "content_ref";
|
||||
|
||||
// If this item points to a pattern content item, render inline accordion
|
||||
if (isContentRef) {
|
||||
return <PatternAccordionCardRenderer item={item} onPress={onPress} />;
|
||||
}
|
||||
|
||||
const rawTitle =
|
||||
asString(attributes.food_name) ||
|
||||
asString(attributes.name) ||
|
||||
|
|
|
|||
Loading…
Reference in New Issue