Added paranoid, debugging and fixes to document deleting on atlas collections

This commit is contained in:
Jori Lallo
2016-08-14 10:50:42 +02:00
parent bcb39d823f
commit 792def3249
8 changed files with 97 additions and 28 deletions

View File

@@ -59,9 +59,7 @@ export function presentCollection(collection, includeRecentDocuments=false) {
type: collection.type,
};
if (collection.type === 'atlas') {
data.navigationTree = await collection.getStructure();
}
if (collection.type === 'atlas') data.navigationTree = collection.navigationTree;
if (includeRecentDocuments) {
const documents = await Document.findAll({