fix import if there are errors
This commit is contained in:
parent
6ae391265e
commit
01872e740e
1 changed files with 2 additions and 2 deletions
|
@ -54,13 +54,13 @@ const Import = {
|
|||
|
||||
const topicsPromise = $.Deferred()
|
||||
parse(topicsText, csv_parser_options, (err, data) => {
|
||||
if (err) topicsPromise.reject(err)
|
||||
if (err) return topicsPromise.reject(err)
|
||||
topicsPromise.resolve(data.map(row => self.lowercaseKeys(row)))
|
||||
})
|
||||
|
||||
const synapsesPromise = $.Deferred()
|
||||
parse(synapsesText, csv_parser_options, (err, data) => {
|
||||
if (err) synapsesPromise.reject(err)
|
||||
if (err) return synapsesPromise.reject(err)
|
||||
synapsesPromise.resolve(data.map(row => self.lowercaseKeys(row)))
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue