|
@@ -24,7 +24,7 @@ function twoDimensionalArr(data, nub, max = 3) {
|
|
|
function checkdate(data) {
|
|
|
for (let i = 0; i < data.length; i++) {
|
|
|
let checkdate = data[i].checkdate;
|
|
|
- if (checkdate == String) data[i].checkdate = checkdate.slice(0, checkdate.lastIndexOf('.'));
|
|
|
+ if (checkdate != null && checkdate != undefined) data[i].checkdate = checkdate.slice(0, checkdate.lastIndexOf('.'));
|
|
|
}
|
|
|
return data;
|
|
|
}
|