forked from ddrilling/asb_cloud_front
Исправлено удаление категорий из списка
This commit is contained in:
parent
60507fba40
commit
81a357b192
@ -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
|
||||
}))
|
||||
|
Loading…
Reference in New Issue
Block a user