icflorescu / mantine-datatable

The table component for your Mantine data-rich applications, supporting asynchronous data loading, column sorting, custom cell data rendering, context menus, nesting, Gmail-style batch row selection, dark theme, and more.
https://icflorescu.github.io/mantine-datatable/
MIT License
951 stars 69 forks source link

Unhandled Runtime Error in mantine-datatable: m.map is not a function #631

Open ecatugy opened 3 months ago

ecatugy commented 3 months ago

Bug Report: Unhandled Runtime Error in Next.js Application

Description:

An unhandled runtime error is occurring in our Next.js application using React, TypeScript, and mantine-datatable version 7.11.2. The error suggests a problem with the .map() function being called on a non-array object.

Environment:

Unhandled Runtime Error: TypeError: m.map is not a function

icflorescu commented 2 months ago

The provided info is too vague. Please provide more context (such as a codesandbox/repo reproducing the issue).

bastiengrignon commented 1 month ago

I've came accross this error too but it happens when you don't set the records or columns so it seems logic to fail if you don't provide anything for your datatable