fix: Account for null collection.documentStructure again

This commit is contained in:
Tom Moor
2022-05-01 09:30:10 -07:00
parent 247208e5f5
commit 669575fc89

View File

@@ -17,7 +17,7 @@ function present(collection: Collection) {
createdAt: collection.createdAt,
updatedAt: collection.updatedAt,
deletedAt: collection.deletedAt,
documents: collection.documentStructure,
documents: collection.documentStructure || [],
};
}