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

Cannot read property 'toUpperCase' of null #10

Open
cesarin3134 opened this issue Apr 6, 2016 · 0 comments
Open

Cannot read property 'toUpperCase' of null #10

cesarin3134 opened this issue Apr 6, 2016 · 0 comments

Comments

@cesarin3134
Copy link

If I pass and object array and the value of the property is null, i get the this error :

Cannot read property 'toUpperCase' of null

I took a look to the source code and it breaks at the line number 58 :
var letter = scope.items[i][attrs.key].toUpperCase().charAt(0);
this is because the value of scope.items[i][attrs.key] is null.
I think that it would be good if the attrs.key passed is null, It should take the next attribute value of the object.
does somebody know how can i fix it ?
thanks.

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

No branches or pull requests

1 participant