const get_id = data =>{
if(data !== null && props.catalog.length > 1){
let arr = []
arr = props.catalog.filter(x=>x['level'] === data)
if(arr.length > 0){
return arr[0].id
}else{
return 0
}
} else {
return 0
}
}