mirror of
https://github.com/outline/outline.git
synced 2026-12-06 03:05:08 +03:00
fix: collection documents property
This commit is contained in:
1 parent
da3d08566e
commit
70e79a5264
1 file changed
+1
-7
@@ -20,14 +20,8 @@ export default function present(collection: Collection) {
|
||||
createdAt: collection.createdAt,
|
||||
updatedAt: collection.updatedAt,
|
||||
deletedAt: collection.deletedAt,
|
||||
documents: undefined,
|
||||
documents: collection.documentStructure ? collection.documentStructure : [],
|
||||
};
|
||||
|
||||
if (collection.type === "atlas") {
|
||||
data.documents = collection.documentStructure
|
||||
? collection.documentStructure
|
||||
: [];
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
Reference in new issue
Block a user