diff --git a/src/front/Components/DesignSystem/FolderList/index.tsx b/src/front/Components/DesignSystem/FolderList/index.tsx index 778aad3c..d208c2aa 100644 --- a/src/front/Components/DesignSystem/FolderList/index.tsx +++ b/src/front/Components/DesignSystem/FolderList/index.tsx @@ -27,7 +27,11 @@ class FolderListClass extends React.Component { : Module.getInstance().get().modules.pages.Folder.pages.FolderInformation.props.path; return (
- {this.props.folders.map((folder) => { + {this.props.folders.sort((folder) => { + const pendingDocuments = folder.documents!.filter((document) => document.document_status === "PENDING"); + console.log(pendingDocuments.length); + return pendingDocuments.length >= 1 ? -1 : 1; + }).map((folder) => { return (