🐛 Fixed dummy data
This commit is contained in:
parent
32bdcbcc92
commit
33fbf77396
@ -260,7 +260,7 @@ export const folderWithPendingDocument3: OfficeFolder = {
|
|||||||
updated_at: new Date(),
|
updated_at: new Date(),
|
||||||
description: "Description",
|
description: "Description",
|
||||||
archived_description: "Archived description",
|
archived_description: "Archived description",
|
||||||
documents: [document, documentDeposited, documentPending],
|
documents: [document, documentDeposited, documentPending, documentIdentity],
|
||||||
office_folder_has_customers: [officeFolderHasCustomer1, officeFolderHasCustomer2],
|
office_folder_has_customers: [officeFolderHasCustomer1, officeFolderHasCustomer2],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
import "reflect-metadata";
|
||||||
|
|
||||||
import LeftArrowIcon from "@Assets/Icons/left-arrow.svg";
|
import LeftArrowIcon from "@Assets/Icons/left-arrow.svg";
|
||||||
import RightArrowIcon from "@Assets/Icons/right-arrow.svg";
|
import RightArrowIcon from "@Assets/Icons/right-arrow.svg";
|
||||||
import ValidateAnchoringGif from "@Front/Assets/images/validate_anchoring.gif";
|
import ValidateAnchoringGif from "@Front/Assets/images/validate_anchoring.gif";
|
||||||
@ -18,7 +20,6 @@ import BasePage from "../../Base";
|
|||||||
import classes from "./classes.module.scss";
|
import classes from "./classes.module.scss";
|
||||||
import OcrResult from "./OcrResult";
|
import OcrResult from "./OcrResult";
|
||||||
|
|
||||||
import "reflect-metadata";
|
|
||||||
|
|
||||||
type IProps = {};
|
type IProps = {};
|
||||||
type IPropsClass = {
|
type IPropsClass = {
|
||||||
@ -278,8 +279,9 @@ export default function ViewDocuments(props: IProps) {
|
|||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
let { folderUid, documentUid } = router.query;
|
let { folderUid, documentUid } = router.query;
|
||||||
|
|
||||||
const folder = folders[0]!;
|
const folder = folders.find((folder) => folder.uid === folderUid) ?? null;
|
||||||
const documents = folder.documents!.filter((document) => document.document_status !== "ASKED");
|
console.log(folder);
|
||||||
|
const documents = folder?.documents!.filter((document) => document.document_status !== "ASKED") ?? [];
|
||||||
const selectedDocument = documents.find((document) => document.uid === documentUid) ?? null;
|
const selectedDocument = documents.find((document) => document.uid === documentUid) ?? null;
|
||||||
return <ViewDocumentsClass {...props} selectedDocument={selectedDocument} router={router} folderUid={folderUid as string} />;
|
return <ViewDocumentsClass {...props} selectedDocument={selectedDocument} router={router} folderUid={folderUid as string} />;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user