|
@@ -18,11 +18,12 @@ function AuditForm(props) {
|
|
|
};
|
|
|
|
|
|
const generateItem = item => {
|
|
|
- return {
|
|
|
+ let newItem = {
|
|
|
...item,
|
|
|
- id: `${item.componentName}_${uuidv4()}`,
|
|
|
- icon: null,
|
|
|
+ props: { ...item.props, id: `${item.componentName}_${uuidv4()}` },
|
|
|
};
|
|
|
+ delete newItem.icon;
|
|
|
+ return newItem;
|
|
|
};
|
|
|
|
|
|
const onChangeAttribute = newItem => {
|