question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: updateData exception with custom editor

See original GitHub issue

I recently found your package … kudos! Anyway I have a PriceEditor based on your example. I receiving this exception after the updateData call in the PriceEditor.

Uncaught Error: Objects are not valid as a React child (found: object with keys {cost, players, hours, fixed, fixedPerHour, playerFixed, playerPerHour}). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons. Check the render method of TableBody.

Otherwise the editor works as expected although the exception is causing follow on functionality to fail. It would seem that the object being returned is the state of the PriceEditor. Not sure what i missed. Suggestions. Thanks

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
elosomancommented, Dec 14, 2016

Please forgive me for the nube question … it looks as though this exception is being thrown in the dataFormat function on the table column. It would appear that when using the custom editor the row dataField value is an object containing the state of customEditor and not an atomic value. Sorry for the confusion.

0reactions
AllenFangcommented, Dec 13, 2016

um…, it’s really hard to understand QQ

BTW, show your raw data and how you render react-bootstrap-table

And if you can give my a minimal and simple example which can reproduce this issue will be appreciated. Because I have no much time to tune and configure or guess your code.

Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Value cannot be null Exception when updating data templates ...
First solution is to solve problem with OOTB / default values to showcase that Commerce 9 is installed and up and running. Share....
Read more >
Sitecore Commerce 9 Updating Data Templates Gives ...
Problem Description. When I hit the “Update Data Templates” button, we received this error: commerceerror.PNG. Precise exceptions logged:.
Read more >
How to update a spinner dynamically? - android
dbAdapter is my link to the database adapter is a custom adapter i made that extends BaseAdapter and implements SpinnerAdapter. I tried what...
Read more >
Add Custom Data to Exceptions -- Visual Studio Magazine
You can add additional information to any Exception object to help you debug your application when something goes horribly wrong.
Read more >
App Architecture: Data Layer - DataStore - Android Developers
Explore this app architecture guide on data layer libraries to learn about Preferences DataStore and Proto DataStore, Setup, and more.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found