mirror of
https://github.com/strapi/strapi.git
synced 2025-08-24 16:49:28 +00:00
Use strapi.contentTypes[uid] instead of strapi.plugin().contentType() to keep the same data structure
This commit is contained in:
parent
d293ca52b1
commit
4620c330b8
@ -211,9 +211,7 @@ const addMediaAttribute = options => {
|
||||
context: { strapi },
|
||||
} = options;
|
||||
|
||||
// todo[v4]: we shouldn't have to handle differently cts fetched
|
||||
// with the .contentType() & those fetched using .contentTypes
|
||||
const fileContentType = strapi.plugin('upload').contentType('file').schema;
|
||||
const fileContentType = strapi.contentTypes['plugin::upload.file'];
|
||||
|
||||
const resolve = buildAssociationResolver({
|
||||
contentTypeUID: contentType.uid,
|
||||
|
Loading…
x
Reference in New Issue
Block a user