mirror of
https://github.com/strapi/strapi.git
synced 2025-08-07 00:09:23 +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(
|
const validData = await entityValidator.validateEntityUpdate(
|
||||||
model,
|
model,
|
||||||
data,
|
_.omit('id', data), // Omit the id, the cloned entity id will be generated by the database
|
||||||
{
|
{ isDraft },
|
||||||
isDraft,
|
|
||||||
},
|
|
||||||
entityToClone
|
entityToClone
|
||||||
);
|
);
|
||||||
const query = transformParamsToQuery(uid, pickSelectionParams(wrappedParams));
|
const query = transformParamsToQuery(uid, pickSelectionParams(wrappedParams));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user