diff --git a/packages/core/src/components/collections/entries/EntryListing.tsx b/packages/core/src/components/collections/entries/EntryListing.tsx index 8ba4d076..91e91306 100644 --- a/packages/core/src/components/collections/entries/EntryListing.tsx +++ b/packages/core/src/components/collections/entries/EntryListing.tsx @@ -120,11 +120,21 @@ const EntryListing = ({ }); }, [entries, inferFields, isSingleCollectionInList, otherProps, summaryFields, viewStyle]); + const summaryFieldHeaders = useMemo(() => { + if ('collection' in otherProps) { + return selectFields(otherProps.collection).map(f => f.label ?? f.name); + } + + return []; + }, [otherProps]); + if (viewStyle === 'VIEW_STYLE_LIST') { return ( <>