Cope with an empty scan list
This commit is contained in:
parent
d96dbdd546
commit
6b6946ec60
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue