From 81a357b19228db8e75d84673173e4fff6bb701fc Mon Sep 17 00:00:00 2001 From: goodm2ice Date: Thu, 24 Feb 2022 17:41:45 +0500 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D1=83=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BA=D0=B0=D1=82=D0=B5=D0=B3=D0=BE=D1=80=D0=B8=D0=B9?= =?UTF-8?q?=20=D0=B8=D0=B7=20=D1=81=D0=BF=D0=B8=D1=81=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/DrillingProgram/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/DrillingProgram/index.jsx b/src/pages/DrillingProgram/index.jsx index 91d0385..3cd3914 100644 --- a/src/pages/DrillingProgram/index.jsx +++ b/src/pages/DrillingProgram/index.jsx @@ -65,7 +65,7 @@ export const DrillingProgram = memo(({ idWell }) => { setData(data) setCategories(categories.filter(cat => { if (cat?.id && (cat.name || cat.shortName)) - if (parts?.findIndex((val) => val.idFileCategory === cat.id) < 0) + if (data.parts?.findIndex((val) => val.idFileCategory === cat.id) < 0) return true return false }))