-
Hello, looks like react table after v8.1.0 stopped working for me. The latest working version is 8.0.13. I get Here is my table component import React, {useState, useEffect} from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { import { selectUsers } from 'store/admin/users/selectors'; import { formatCellColor, formatIsoDateString } from 'helpers/format_helper'; const MakeUsersTable = () => { const table = createTable(); const [rowSelection, setRowSelection] = useState({}) const data = useSelector(selectUsers); const columns = [ <IndeterminateCheckbox {...{ checked: row.getIsSelected(), indeterminate: row.getIsSomeSelected(), onChange: row.getToggleSelectedHandler(), }} /> ), }), table.createDataColumn('Username', { header: "Nickname", }), table.createDataColumn('Attributes', { header: "Name", id: 'name', cell: attributes => attributes.getValue().filter(element => element.Name === 'name')[0].Value }), table.createDataColumn('Enabled', { header: 'Enabled' }), table.createDataColumn('UserStatus', { header: 'Status', cell: status => formatCellColor(status.getValue()) }), table.createDataColumn('Attributes', { header: 'Email', id: 'email', cell: attributes => attributes.getValue().filter(element => element.Name === 'email')[0].Value }), table.createDataColumn('Attributes', { header: 'Email Verified', id: 'email_verified', cell: attributes => attributes.getValue().filter(element => element.Name === 'email_verified')[0].Value }), table.createDataColumn('UserCreateDate', { header: 'Created', cell: status => formatIsoDateString(status.getValue()) }), ]
} export default MakeUsersTable; any ideas? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
it works now. Looks like the API changed since the beta release and i had to adjust the way how i instantiate the table, column definitions and markup. |
Beta Was this translation helpful? Give feedback.
it works now. Looks like the API changed since the beta release and i had to adjust the way how i instantiate the table, column definitions and markup.