Compare View
Commits (2)
Changes
Showing 3 changed files Side-by-side Diff
api-server/router-locations.js
... | ... | @@ -33,7 +33,7 @@ function pageAdd(req, res) { |
33 | 33 | } |
34 | 34 | |
35 | 35 | if (typeof locations === 'string') { |
36 | - locations = locations.trim().split(/[\s,]+/).map((el) => { return el && el.toUpperCase() !== 'ALL'; }); | |
36 | + locations = locations.trim().split(/[\s,]+/).filter((el) => { return el.toUpperCase() !== 'ALL'; }); | |
37 | 37 | } |
38 | 38 | |
39 | 39 | const locationsCount = locations.length; |
package-lock.json