You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a very similar issue to #166.
I continuosly get the following error message in the browser console, as the grid has been loaded:
index.js:2178 Warning: Failed prop type: Invalid prop data of value [object Object] supplied to Grid, expected one of [null,null].
The solution might be using oneOfType instead of oneOf when defining the type of 'data' property.
The code is placed in components/Grid.jsx: data: oneOf([ arrayOf(object), object, ]),
oneOf involves the EnumTypeChecker, while oneOfType involves UnionTypeChecker. Currently the EnumTypeChecker's validate method always fails and returns the mentioned error.
The text was updated successfully, but these errors were encountered:
Hi,
I found a very similar issue to #166.
I continuosly get the following error message in the browser console, as the grid has been loaded:
The solution might be using
oneOfType
instead ofoneOf
when defining the type of 'data' property.The code is placed in components/Grid.jsx:
data: oneOf([ arrayOf(object), object, ]),
oneOf
involves the EnumTypeChecker, whileoneOfType
involves UnionTypeChecker. Currently the EnumTypeChecker'svalidate
method always fails and returns the mentioned error.The text was updated successfully, but these errors were encountered: