const availableFunc = (id) => { if (Active.length > 0) { let available = Active.filter((obj) => obj.type === id).map((obj) => obj.available !== und