Topic: Why isn't my datatable displaying my API data in the right columns?

annahisenberg free asked 4 years ago


Expected behavior My data is should be displayed in the correct column. For example, under Insight Name, it should display the name of the insight. Right now it's displaying the date.

Actual behavior My data is being displayed in all the wrong columns even though I matched the fields with the object keys from the API.

Resources (screenshots, code snippets etc.)

Screenshot: https://imgur.com/a/cH4ndhi

Code: https://codesandbox.io/s/beautiful-aryabhata-o374e (don't pay attention to how it looks on the browser please. Just look at the code.)


Konrad Stępień staff answered 4 years ago


Hi @annahisenberg,

Thank you for the founded bug!

It seems that the row does not react for the name of object property and data must be arranged in the same way as the order of the columns.

We will fix this in the near future.

Best regards.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.19.2
  • Device: PC
  • Browser: Chrome
  • OS: windows
  • Provided sample code: No
  • Provided link: Yes
Tags