fix: content type being set to "content" during sync

this bug broke export/publishing & basically
everything that depends on content type
to function.
This commit is contained in:
thecodrr
2022-08-06 10:45:15 +05:00
parent 62b715645f
commit cf9bad7db8
4 changed files with 15 additions and 8 deletions

View File

@@ -257,7 +257,9 @@ class Sync {
const arrays = data.items.reduce(
(arrays, item) => {
arrays.types.push(item.type);
arrays.types.push(item.collectionId);
delete item.collectionId;
arrays.items.push(item);
return arrays;
},