chore: misc fixes

This commit is contained in:
James
2024-04-10 16:58:08 -04:00
parent 4f9fdb6c14
commit 96dbab8834
5 changed files with 36 additions and 36 deletions

View File

@@ -35,7 +35,10 @@ export const getPayloadHMR = async (options: InitOptions): Promise<Payload> => {
cached.payload.config = config
cached.payload.collections = config.collections.reduce((collections, collection) => {
collections[collection.slug] = { config: collection }
collections[collection.slug] = {
config: collection,
customIDType: cached.payload.collections[collection.slug]?.customIDType,
}
return collections
}, {})