[Combined export] Raise limit to 4000

This commit is contained in:
ShootingStar91
2024-08-02 09:58:32 +03:00
parent c9f9b8091e
commit c3aaded700
@@ -42,13 +42,14 @@ export const LocalityTable = ({ selectorFn }: { selectorFn?: (newObject: Localit
notify('Please wait for the last request to complete.', 'warning')
return
}
const limit = 2000
const limit = 4000
if (lids.length > limit) {
notify(`Please filter the table more. Current rows: ${lids.length}. Limit: ${limit}`, 'error')
return
}
const result = await getLocalitySpeciesList(lids).unwrap()
const dataString = result.map(row => (row as unknown[]).join(',')).join('\n')
const dataString = result.map(row => (row as Array<unknown>).join(',')).join('\n')
const blob = new Blob([dataString], { type: 'text/csv' })
const url = URL.createObjectURL(blob)
const a = document.createElement('a')