DataTablesSrc icon indicating copy to clipboard operation
DataTablesSrc copied to clipboard

Display a more relevant error when no column headers are present

Open mmcev106 opened this issue 7 years ago • 1 comments

Before: http://plnkr.co/edit/mov49plvZ1LcEXti1fsx?p=preview

Notice the fairly cryptic "Uncaught TypeError: Cannot read property..." javascript error.

After: http://plnkr.co/edit/nOWFB4DjpYCdXkUdwpiF?p=preview

It was a hard decision, but I'm fine if these three lines get released under the MIT license.

mmcev106 avatar Aug 07 '18 20:08 mmcev106

Yup - good point. I'm actually working on a rewrite of the column handling at the moment, so I'm not going to pull it in right away, but I'll do so when I've got the rest of my tree sorted out.

DataTables avatar Aug 08 '18 09:08 DataTables