Fixed adding of locations and beacons only if array has at least 1 element

This commit is contained in:
alexandercerutti
2018-09-11 22:09:37 +02:00
parent 4a790d4161
commit 8c3482a562

View File

@@ -248,7 +248,7 @@ class Pass {
}
let valid = data.filter(d => schema.isValid(d, type+"Dict"));
this.props[type] = valid;
this.props[type] = valid.length ? valid : undefined;
return Object.assign({
length: valid.length