mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
[Combined export] Raise limit to 4000
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user