mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
fix: do not display an error for an empty CSV
fix #577 fix #2491 fix #1546
This commit is contained in:
parent
815ff046ff
commit
8e13a15645
1 changed files with 6 additions and 2 deletions
|
@ -103,8 +103,12 @@ export class Formatter {
|
|||
message: err[0].message,
|
||||
})
|
||||
}
|
||||
Alert.error(message, 10000)
|
||||
if (str.split(/\r\n|\r|\n/).length <= 2) {
|
||||
// Seems like a blank CSV, let's not warn
|
||||
console.debug(err)
|
||||
} else {
|
||||
Alert.error(message, 10000)
|
||||
}
|
||||
}
|
||||
if (result?.features.length) {
|
||||
callback(result)
|
||||
|
|
Loading…
Reference in a new issue