I am retrieving data from one component in react that is being passed into another component as a 2d array.
console.log(this.props.cheatsheet) Results in [object Object],[object Object]
console.log(JSON.stringify(this.props.dashboards)); shows me the arrays values below
[
{
"name":"Test",
"description":"TEest",
"filter":[
"201158",
"200461",
"201345"
],
"KPIs":[
]
},
{
"name":"Asset Owner Dashboard",
"description":"Description for Asset Owner Dashboard",
"filter":[
"201732",
"222323",
323244
],
"KPIs":[
{
"name":"Asset",
"charts":[
{
"name":"Details"
}
]
},
{
"name":"Incidents",
"charts":[
{
"name":"Count by AssignmentGroup"
},
{
"name":"COE Open Tickets"
},
{
"name":"NEW IM in Last 48hrs"
}
]
},
{
"name":"Problem Tickets",
"charts":[
{
"name":"Count by Status"
},
{
"name":"Open PMR"
},
{
"name":"Details"
}
]
}
]
}
]
what is the best way for me to map the filter array from test and Asset Owner Dashboard