title and genre are uploading
rate and stock data is not uploading i have done a console .log where I get the result of stock rate but its not showing here
here is my tablebody code
import React, { Component } from ‘react’;
Your logs show that props passed the data to tablebody.jsx correctly. The most likely reason is that something went wrong when reading objects properties.
I noticed that your console.log is in line 11. It is from
console.log return undefined to _.get(), and _.get() will return undefined as well. There shoud not be any content in the table right now.
If I debug this code, there must be wrong in rendering column cells. So I will console.log the cell’s content to track it down.
you have same problem i have done a spelling mistake in columns array ,columns array have path in path I did spelling mistake
{ path: “numberInStock”, label: “Stock” },
i’m getting error in tableBody.jsx component.
while using this line…
{_.get(item,column.path)}
Error: Objects are not valid as a React child (found: object with keys {_id, name}). If you meant to render a collection of children, use an array instead.
for reference this is my stackoverflow post regarding the same topic.