correction when the data is empty

This commit is contained in:
2022-09-24 15:57:11 +02:00
parent 9022786580
commit 1ba7a58f9c
+2 -1
View File
@@ -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];