Console output:
{
295798: {
box_type: "QB",
color: "Assorted",
floor_allowed: 2100,
grade: false,
head_size: null,
is_special: "0",
length: false,
live_inventry: "1",
}
}
I have an array that is shown in the screenshot above in chrome console. when I print out the array it comes up.
console.log(props.thisData);
console.log(props.thisData[0].color);
props.thisData shows the whole array. However when I try to access the color I get the following error:
Product.jsx:56 Uncaught TypeError: Cannot read property 'color' of undefined