Ag-Grid: не может прочитать свойство 0 - PullRequest
1 голос
/ 03 февраля 2020

Я получаю Uncaught TypeError: Невозможно прочитать свойство '0' из неопределенного при попытке экспорта данных ag-grid в Excel. Любая идея, что может быть причиной. клюет на линии @_gridOptions.api.getDataAsExce в chrome.

_exportDataAsExcel: ->
   content = @_gridOptions.api.getDataAsExcel({allColumns: false, exportMode: "xml", suppressTextAsCDATA: true})
workbook = XLSX.read(content, type: 'binary')
xlsxContent = XLSX.write(workbook, bookType: 'xlsx', type: 'base64')
@_downloadXLSX(xlsxContent)


_downloadXLSX: (base64content) ->
fileName = 'export.xlsx'
blobObject = @_base64toBlob(
  base64content,
  'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
)

error screen

...