Category: JS Objects
Updated

This Value Does Not Evaluate to Type Array<Object>}

Issue

When trying to bind data to a widget (e.g. Table Widget, List Widget), it throws an error saying This value does not evaluate to type Array<Object>}

Resolution

When this error occurs, it means you're binding data in a form that is different from what the Widget is expecting. 
Type Array<Object> means an `Array of Objects`. For example, [{name: "olawale", email:"olawale@appsmith.com"}, {name: "support", email:"support@appsmith.com"}]  is an array of Objects with 2 objects. 

To debug this type of issue, check the source of your data and make sure that it returns a data format that conforms to the type Array<Object>. If it doesn't you'll have to transform the data from the type returned by your API or Query to a type that conforms to the Type specified above.