We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fe6ffd commit 663e511Copy full SHA for 663e511
packages/payload/src/collections/config/sanitize.ts
@@ -45,8 +45,6 @@ export const sanitizeCollection = async (
45
validRelationships,
46
})
47
48
- validateUseAsTitle(sanitized)
49
-
50
if (sanitized.timestamps !== false) {
51
// add default timestamps fields only as needed
52
let hasUpdatedAt = null
@@ -193,5 +191,7 @@ export const sanitizeCollection = async (
193
191
sanitized.admin.pagination.limits = collection.admin.pagination.limits
194
192
}
195
+ validateUseAsTitle(sanitized)
+
196
return sanitized as SanitizedCollectionConfig
197
0 commit comments