79535818

Date: 2025-03-26 08:44:05
Score: 1
Natty:
Report link

DataGrid from MUI requires rows to be an array of objects, each with a unique id field.

Make sure your API response is indeed an array. If not, and it's just a single object, wrap it in an array like so:

const newLogs = [{  ...logs,  id: logs._id}]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Wajdi Riahi