Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataTable: Warnings #2 #126

Open
janus-reith opened this issue Oct 19, 2019 · 0 comments
Open

DataTable: Warnings #2 #126

janus-reith opened this issue Oct 19, 2019 · 0 comments

Comments

@janus-reith
Copy link

Type: minor

I use DataTable on multiple routes, and it seems the warnings only occur the first time I load a table on any of these with bulk actions using a Dialog and filters offering multi-select. They don't appear on the orders table as it used neither actions nor filters.

Failed prop type: Invalid prop actionMenuProps of type object supplied to ForwardRef(DataTable), expected an array.
in ForwardRef(DataTable) (created by ProductTable)

Nope, object is correct as we might have a child componenent/label and other props, the options array is inside that object.

Warning: Each child in a list should have a unique "key" prop.
Check the render method of ForwardRef(DataTable). See https://fb.me/react-warning-keys for more information.
I believe this is because of this:

RadioGroup is the outer component and needs a key.

Warning: Each child in a list should have a unique "key" prop.
Check the render method of ForwardRef(ActionMenu). See https://fb.me/react-warning-keys for more information.

I believe this is because of this:

if (confirmTitle || confirmMessage) {

ConfirmDialog is the outer component and needs a key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant