Skip to content

Commit 7fc39ad

Browse files
sujeetpillaimportuga
authored andcommitted
fix(exporter.js): exporterExcelCustomFormatter should return the unmodified 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 #6774 * Correcting the fix The fix is supposed to be for exporterExcelCustomFormatter not exporterExcelHeader closes #6774
1 parent 9ab0a4c commit 7fc39ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/exporter/js/exporter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@
608608
* }
609609
* </pre>
610610
*/
611-
gridOptions.exporterExcelCustomFormatters = gridOptions.exporterExcelCustomFormatters ? gridOptions.exporterExcelCustomFormatters : function( grid, workbook, docDefinition ) { return null; };
611+
gridOptions.exporterExcelCustomFormatters = gridOptions.exporterExcelCustomFormatters ? gridOptions.exporterExcelCustomFormatters : function( grid, workbook, docDefinition ) { return docDefinition; };
612612

613613
/**
614614
* @ngdoc function

0 commit comments

Comments
 (0)