mirror of
https://github.com/strapi/strapi.git
synced 2025-08-05 07:16: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(
|
||||
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 },
|
||||
entityToClone
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user