From 480fff082ff88de6184327e2b6427e050c9c7f47 Mon Sep 17 00:00:00 2001 From: Maxime Lalo Date: Thu, 11 May 2023 17:50:16 +0200 Subject: [PATCH] :bug: Folder name in view document --- src/front/Components/Layouts/Folder/ViewDocuments/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/front/Components/Layouts/Folder/ViewDocuments/index.tsx b/src/front/Components/Layouts/Folder/ViewDocuments/index.tsx index 68b41f2e..677b0260 100644 --- a/src/front/Components/Layouts/Folder/ViewDocuments/index.tsx +++ b/src/front/Components/Layouts/Folder/ViewDocuments/index.tsx @@ -74,7 +74,7 @@ class ViewDocumentsClass extends BasePage { {this.state.document && this.state.document.files && this.state.selectedFile && (
- {this.state.document.document_type?.name} + {this.state.document.folder?.name} {this.state.document.document_type?.name} @@ -188,6 +188,7 @@ class ViewDocumentsClass extends BasePage { const document = await Documents.getInstance().getByUid(this.props.documentUid, { files: true, document_type: true, + folder: true, }); this.setState({ document,