From 0d6e46d91f64c6ed3315c74a37327144e07c8c15 Mon Sep 17 00:00:00 2001 From: goodm2ice Date: Tue, 29 Mar 2022 16:09:47 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BF=D0=B8=D1=81=D0=BA=D0=B8=20=D0=BC?= =?UTF-8?q?=D0=B5=D0=BC=D0=BE=D0=B8=D0=B7=D0=B8=D1=80=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D1=8B,=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=BE=20=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?=D0=BE=D0=BA=D0=BE=D0=BD=20=D1=81=D0=BE=D0=B3=D0=BB=D0=B0=D1=81?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F/=D0=BE=D1=82=D0=BA=D0=BB?= =?UTF-8?q?=D0=BE=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/DrillingProgram/CategoryRender.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/DrillingProgram/CategoryRender.jsx b/src/pages/DrillingProgram/CategoryRender.jsx index 50316be..d3a168e 100755 --- a/src/pages/DrillingProgram/CategoryRender.jsx +++ b/src/pages/DrillingProgram/CategoryRender.jsx @@ -45,6 +45,8 @@ export const CategoryRender = memo(({ idWell, partData, onUpdate, onEdit, onHist } = partData ?? {} const uploadUrl = useMemo(() => `/api/well/${idWell}/drillingProgram/part/${idFileCategory}`, [idWell, idFileCategory]) + const approvedMarks = useMemo(() => file?.fileMarks?.filter((mark) => mark.idMarkType === 1), [file]) + const rejectMarks = useMemo(() => file?.fileMarks?.filter((mark) => mark.idMarkType === 0), [file]) const [isUploading, setIsUploading] = useState(false) const [isDeleting, setIsDeleting] = useState(false) @@ -149,13 +151,13 @@ export const CategoryRender = memo(({ idWell, partData, onUpdate, onEdit, onHist {permissionToApprove && ( )} - mark.idMarkType === 1)} /> +
{permissionToApprove && ( )} - mark.idMarkType === 0)} /> +
)}