mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 07:33:17 +00:00
parent
f166ce0b72
commit
e074574761
@ -253,9 +253,13 @@ const EditViewDataManagerProvider = ({
|
||||
|
||||
const createFormData = useCallback(
|
||||
data => {
|
||||
const cleanedData = removeKeyInObject(
|
||||
cleanData(data, currentContentTypeLayout, allLayoutData.components),
|
||||
'__temp_key__'
|
||||
// First we need to remove the added keys needed for the dnd
|
||||
const preparedData = removeKeyInObject(cloneDeep(data), '__temp_key__');
|
||||
// Then we need to apply our helper
|
||||
const cleanedData = cleanData(
|
||||
preparedData,
|
||||
currentContentTypeLayout,
|
||||
allLayoutData.components
|
||||
);
|
||||
|
||||
return cleanedData;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user