Cope with an empty scan list

This commit is contained in:
Richard Bowman 2024-01-11 13:37:27 +00:00
parent d96dbdd546
commit 6b6946ec60

View file

@ -135,6 +135,9 @@ export default {
methods: {
async updateScans() {
let scans = await this.readThingProperty("smart_scan", "scans");
if (!scans | scans.length == 0) {
return;
}
scans.forEach(scan => {
scan.modified = Date.parse(scan.modified);
scan.created = Date.parse(scan.created);