VulcanJS / Vulcan

🌋 A toolkit to quickly build apps with React, GraphQL & Meteor
http://vulcanjs.org
MIT License
7.98k stars 1.88k forks source link

Material-UI Datatable doesn't populate columns #2475

Closed Neobii closed 4 years ago

Neobii commented 4 years ago

When using the datatable with Material-ui, the columns do not show up, however, rows show up and when the edit button is clicked, the proper data is populated there.

eric-burel commented 4 years ago

Can you please provide some examples so we can reproduce?

Neobii commented 4 years ago

Here's the test case: https://github.com/Neobii/Datatable. One problem to fix right off the bat is the need to use getCollection here (https://github.com/VulcanJS/Vulcan/blob/devel/packages/vulcan-ui-material/lib/components/core/Datatable.jsx#L136)

Neobii commented 4 years ago

Actually a better test case is just going to /debug and having the vulcan:ui-material packages added. The datatable's don't show the columns there.