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 }))