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

Unable to render Reactables #46

Closed
gc-alexlong opened this issue Jun 9, 2017 · 4 comments
Closed

Unable to render Reactables #46

gc-alexlong opened this issue Jun 9, 2017 · 4 comments
Assignees
Labels

Comments

@gc-alexlong
Copy link

Hello! I am implementing a table without editor settings for a React app I'm creating, as I don't need the editor portion. I get error Uncaught TypeError: Cannot read property 'fields' of undefined when the component attempts to load in browser. In Firefox, I see TypeError: t is undefined, but I don't know if that's a separate issue.

React Version: 15.5.4

@arthurkushman
Copy link
Contributor

arthurkushman commented Jun 9, 2017

Hi, here is a patch with fix - https://github.com/GigaTables/reactables/releases/tag/1.6.2
You can just exclude an editor prop from <Reactables>.
Also, don't forget to delete buttons from tableOpts in settings prop, if You did so, everything will work with buttons left there, but they will be inactive.

@gc-alexlong
Copy link
Author

gc-alexlong commented Jun 9, 2017

Hello,

The issue still persists after patching, but now the error is a bit different, Uncaught TypeError: Cannot read property 'indexOf' of undefined at t.value (index.js:27)

P.S.: Thank you for your swift reply!
P.S.S: I never defined the "editor" or "tableOpts" in my settings, if that helps. If they are required, even as empty values, please let me know.

@arthurkushman arthurkushman reopened this Jun 9, 2017
@arthurkushman
Copy link
Contributor

Ok then, can You please post code snippet, of table definition with options/props?
thx for contribution

@arthurkushman
Copy link
Contributor

Another patch, tested with "Minimal configuration" - https://github.com/GigaTables/reactables/releases/tag/1.6.3

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

No branches or pull requests

2 participants