Material-table: Array field

Created on 16 Nov 2019  路  1Comment  路  Source: mbrn/material-table

Describe the bug
Array fields are showing as a string with no comma

ie: [1,2,3] renders as 123 instad of 1,2,3

To Reproduce

  1. Select a column with array field
  2. Render the table

Expected behavior
array as string separated with commas

Additional info:

I tried with this custom render method

    {
      title: "Cods. Comisi贸n",
      field: "cod_comision",
      render: rowData => rowData.cod_comision.join()
    }

Throws this error when editing a field
rowData.cod_comision.join is not a function

But data shows good after a refresh

help wanted

Most helpful comment

Hi @llermaly

I tested this code and it works. Can you test it again with latest version, please?

image

I am closing issue. You can reopen it if it requires.

>All comments

Hi @llermaly

I tested this code and it works. Can you test it again with latest version, please?

image

I am closing issue. You can reopen it if it requires.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

balibou picture balibou  路  3Comments

timrchavez picture timrchavez  路  3Comments

ModPhoenix picture ModPhoenix  路  3Comments

terapepo picture terapepo  路  3Comments

lazeebee picture lazeebee  路  3Comments