mirror of
https://github.com/strapi/strapi.git
synced 2025-08-06 07:50:02 +00:00
fix: omit using regular lodash
This commit is contained in:
parent
98c9b6d6c1
commit
930cde00dd
@ -283,7 +283,7 @@ const createDefaultImplementation = ({ strapi, db, eventHub, entityValidator })
|
|||||||
|
|
||||||
const validData = await entityValidator.validateEntityUpdate(
|
const validData = await entityValidator.validateEntityUpdate(
|
||||||
model,
|
model,
|
||||||
_.omit('id', data), // Omit the id, the cloned entity id will be generated by the database
|
_.omit(data, ['id']), // Omit the id, the cloned entity id will be generated by the database
|
||||||
{ isDraft },
|
{ isDraft },
|
||||||
entityToClone
|
entityToClone
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user