SalesforceLabs / EnhancedLightningGrid

Component that allows you to sort and filter data within the Lightning Experience. Use as a replacement for a Related List, or create a new grid that shows results from a custom query.
BSD 3-Clause "New" or "Revised" License
136 stars 96 forks source link

Doubles not showing zero values #11

Open sfdcsteve opened 6 years ago

sfdcsteve commented 6 years ago

If I have the grid populated with any double values, columns with a zero are simply not displayed. I think this is the culprit:

`var datachunk = field.datachunk; var datachunkid = field.datachunkid;

    var fieldurl = field.url;
    var objid = field.ObjId;

    if (!datachunk) datachunk = "";`

That last line should instead be:

if (datachunk == null) datachunk = "";

Code is in sdgDatagridCellController.js around line 22