tochoromero / aurelia-table

Simple functional data table for Aurelia
https://tochoromero.github.com/aurelia-table
MIT License
67 stars 25 forks source link

Prevent error when sorted object property is undefined #58

Closed jc99ta closed 6 years ago

jc99ta commented 6 years ago

In the event that a sorted property value resolved to undefined the code had attempted to call .toString() which resulted in an error.

This change should account for both null and undefined properties, setting the value to empty string in both cases.

jc99ta commented 6 years ago

Thanks, I debated which way to go initially :-) I have made the change