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

Table View crashes with repeat group changing between versions in a particular way #3975

Open
magicznyleszek opened this issue Aug 17, 2022 · 0 comments
Labels
bug Things broken and not working as expected Front end

Comments

@magicznyleszek
Copy link
Member

Description

The error is Objects are not valid as a React child (found: object with keys {foo/bar}). If you meant to render a collection of children, use an array instead.. This means some piece of code we have (our code, or react-table) is getting some unexpected value in a place where it expected to render something simple.

It's hard to reproduce it locally - the only way to achieve it right now is to use https://github.com/kobotoolbox/kobo-transfer/.

Steps to Reproduce

  1. Create a copy of the project on your local machine (get it from Zulip topic linked below)
  2. Deploy
  3. Use kobo-transfer to get the exact data
  4. Go to Data Table
  5. Page loads and then whole JS app crashes 🐛

Expected behavior

It should not crash, but rather render something useful (or render nothing, if useful is not achieveable).

Additional details

Community post: https://community.kobotoolbox.org/t/unable-to-fetch-data-from-the-humanitarian-server-for-editing/32175
Zulip topic (with some more private details): https://chat.kobotoolbox.org/#narrow/stream/6-Support/topic/Table.20view.20issues/near/140597

@magicznyleszek magicznyleszek added bug Things broken and not working as expected Front end labels Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Things broken and not working as expected Front end
Projects
None yet
Development

No branches or pull requests

1 participant