Merge branch 'fix/clone-relations-components' of github.com:strapi/strapi into fix/clone-relations-components

This commit is contained in:
Josh 2023-07-19 09:17:52 +01:00
commit 1b99c20f66

View File

@ -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));