tcomb-form-native icon indicating copy to clipboard operation
tcomb-form-native copied to clipboard

Updating the options

Open gauravg924 opened this issue 6 years ago • 1 comments

I am getting the following error while updating the options in in Change method. Please help me to resolve this. please.

TypeError: undefined is not an object (evaluating 'value[k]')

gauravg924 avatar Jun 01 '18 11:06 gauravg924

@gauravg924

At first glance this appears to be a bug in your javascript. You might need to provide more information to enable someone to help you with this. It might make more sense to post your question at stack overflow. If you console log your value variable, you will likely see that it is undefined. You probably need to add a check to make sure it is defined...

if ('undefined' !== typeof value[k]) {
 // do something.
} 

arnoldbird avatar Jun 07 '18 15:06 arnoldbird