Skip to content

Commit

Permalink
fix(exporter.js): exporterExcelCustomFormatter should return the unmo…
Browse files Browse the repository at this point in the history
…dified docDefinition

* Default exporterExcelCustomFormatter shouldn't return null

The default exporterExcelCustomFormatter custom function currently returns null which causes errors downstream. It should return the unmodified docDefinition

This should fix issue angular-ui#6774

* Correcting the fix

The fix is supposed to be for exporterExcelCustomFormatter not exporterExcelHeader

closes angular-ui#6774
  • Loading branch information
sujeetpillai authored and Devin Fields committed Oct 30, 2018
1 parent 6410dc3 commit 1a0f6bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/exporter/js/exporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@
* }
* </pre>
*/
gridOptions.exporterExcelCustomFormatters = gridOptions.exporterExcelCustomFormatters ? gridOptions.exporterExcelCustomFormatters : function( grid, workbook, docDefinition ) { return null; };
gridOptions.exporterExcelCustomFormatters = gridOptions.exporterExcelCustomFormatters ? gridOptions.exporterExcelCustomFormatters : function( grid, workbook, docDefinition ) { return docDefinition; };

/**
* @ngdoc function
Expand Down

0 comments on commit 1a0f6bb

Please sign in to comment.