Commit c71a875ba68b7a317b027fb9c5fbe2c6b66493c7
1 parent
43044809eb
Exists in
master
APISERVER: typo nama method **CRITICAL**
Showing 1 changed file with 1 additions and 1 deletions 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; |