diff --git a/packages/payload/src/collections/config/sanitize.ts b/packages/payload/src/collections/config/sanitize.ts index 2ca62c29dec..66f0cc24c5a 100644 --- a/packages/payload/src/collections/config/sanitize.ts +++ b/packages/payload/src/collections/config/sanitize.ts @@ -71,6 +71,7 @@ export const sanitizeCollection = async ( disableBulkEdit: true, hidden: true, }, + index: true, label: ({ t }) => t('general:updatedAt'), }) } diff --git a/packages/payload/src/versions/buildGlobalFields.ts b/packages/payload/src/versions/buildGlobalFields.ts index 5954967edd7..ed21c3d40ac 100644 --- a/packages/payload/src/versions/buildGlobalFields.ts +++ b/packages/payload/src/versions/buildGlobalFields.ts @@ -20,6 +20,7 @@ export const buildVersionGlobalFields = ( admin: { disabled: true, }, + index: true, }, { name: 'updatedAt', @@ -27,6 +28,7 @@ export const buildVersionGlobalFields = ( admin: { disabled: true, }, + index: true, }, ]