Home > Back-end >  React MUI Datatables - merge rows if they have the same value
React MUI Datatables - merge rows if they have the same value

Time:09-10

certain rows from my database contain the same values expect time. How to marge them together that my table shows me the last of them and the rest of the rows ?

Example: enter image description here

CodePudding user response:

You could use the .filter() method to filter the (almost) duplicates out of your array before passing it to the MUI Datatable.

  • Related