Fix editing of content list items
This commit is contained in:
parent
e98831577f
commit
2fbd0dccf9
|
|
@ -11,6 +11,13 @@ export const simplifyContents = (contents) => {
|
|||
if (USER_CONTENT_TYPES.includes(c.type)) {
|
||||
return c;
|
||||
}
|
||||
console.log(c);
|
||||
if (c.type === 'content_list_item') {
|
||||
return {
|
||||
...c,
|
||||
contents: simplifyContents(c.contents)
|
||||
};
|
||||
}
|
||||
return {
|
||||
id: c.id,
|
||||
type: 'readonly'
|
||||
|
|
|
|||
Loading…
Reference in New Issue