null check
This commit is contained in:
parent
e893728294
commit
df589f3dd0
@ -222,14 +222,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// append errors
|
// append errors
|
||||||
for (error of res.data.errors) {
|
if (res.data.errors !== null) {
|
||||||
const message = error.Message;
|
for (error of res.data.errors) {
|
||||||
const time = new Date(error.Time);
|
const message = error.Message;
|
||||||
|
const time = new Date(error.Time);
|
||||||
|
|
||||||
const tr = document.createElement('tr');
|
const tr = document.createElement('tr');
|
||||||
appendTd(tr, message);
|
appendTd(tr, message);
|
||||||
appendTd(tr, time.toDateString());
|
appendTd(tr, time.toDateString());
|
||||||
document.getElementById('error_body').appendChild(tr);
|
document.getElementById('error_body').appendChild(tr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user