From d675057c9574e1498e05ae5ebca3aabab93a28ad Mon Sep 17 00:00:00 2001 From: alexandercerutti Date: Tue, 11 Sep 2018 22:09:37 +0200 Subject: [PATCH] Fixed adding of locations and beacons only if array has at least 1 element --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 7123199..efbd674 100644 --- a/index.js +++ b/index.js @@ -233,6 +233,7 @@ class Pass { } let valid = data.filter(d => schema.isValid(d, type+"Dict")); + this._props[type] = valid.length ? valid : undefined; return Object.assign({