mirror of
https://github.com/strapi/strapi.git
synced 2025-08-06 15:53:11 +00:00
Merge branch 'fix/clone-relations-components' of github.com:strapi/strapi into fix/clone-relations-components
This commit is contained in:
commit
1b99c20f66
@ -283,10 +283,8 @@ const createDefaultImplementation = ({ strapi, db, eventHub, entityValidator })
|
||||
|
||||
const validData = await entityValidator.validateEntityUpdate(
|
||||
model,
|
||||
data,
|
||||
{
|
||||
isDraft,
|
||||
},
|
||||
_.omit('id', data), // Omit the id, the cloned entity id will be generated by the database
|
||||
{ isDraft },
|
||||
entityToClone
|
||||
);
|
||||
const query = transformParamsToQuery(uid, pickSelectionParams(wrappedParams));
|
||||
|
Loading…
x
Reference in New Issue
Block a user