correction when the data is empty
This commit is contained in:
@@ -10,7 +10,8 @@ class ExcelUtil {
|
||||
(info, index, list) => {
|
||||
// console.log("info:" + info)
|
||||
// console.log("index:" + index)
|
||||
if (index > 0) {
|
||||
if (index > 0 && info.length > 0) {
|
||||
// console.log(info)
|
||||
let name = info[0].split(" ")
|
||||
let firstName = name[1];
|
||||
let lastName = name[0];
|
||||
|
||||
Reference in New Issue
Block a user