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}]