From 1763ccd67121feefb98090697277f0c702f9b08d Mon Sep 17 00:00:00 2001 From: Maxime Lalo Date: Fri, 12 May 2023 11:56:14 +0200 Subject: [PATCH] :bug: Filter on archived files --- src/front/Components/Layouts/Folder/ViewDocuments/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/front/Components/Layouts/Folder/ViewDocuments/index.tsx b/src/front/Components/Layouts/Folder/ViewDocuments/index.tsx index 1ac9c26d..d45df44f 100644 --- a/src/front/Components/Layouts/Folder/ViewDocuments/index.tsx +++ b/src/front/Components/Layouts/Folder/ViewDocuments/index.tsx @@ -187,7 +187,9 @@ class ViewDocumentsClass extends BasePage { override async componentDidMount() { try { const document = await Documents.getInstance().getByUid(this.props.documentUid, { - files: true, + files: { + where: { archived_at: null }, + }, document_type: true, folder: true, });