chore: limit submitting rows based on liscence
Build / Build-and-ng-test (pull_request) Failing after 17s
Build / Build-and-ng-test (pull_request) Failing after 17s
This commit is contained in:
@@ -324,7 +324,10 @@ export class XLMapComponent implements AfterContentInit, AfterViewInit, OnInit {
|
||||
const csvContent =
|
||||
Object.keys(this.xlData[0]).join(',') +
|
||||
'\n' +
|
||||
this.xlData.map((row: any) => Object.values(row).join(',')).join('\n')
|
||||
this.xlData
|
||||
.slice(0, this.licenceState.value.submit_rows_limit)
|
||||
.map((row: any) => Object.values(row).join(','))
|
||||
.join('\n')
|
||||
|
||||
const blob = new Blob([csvContent], { type: 'application/csv' })
|
||||
const file: File = this.blobToFile(blob, this.filename + '.csv')
|
||||
|
||||
Reference in New Issue
Block a user