eachOption = (level)=>{
var arr = [];
function refining(level,arr) {
const length = level.length;
for (var i = 0; i < length; i++) {
arr.push({
id:level[i].id,
name:level[i].name
});
if(level[i].children){