Commit 47675a6f482c289b0104e07583359b7c64d26733

Authored by Adhidarma Hadiwinoto
1 parent 33e54a9fa7
Exists in master

typo

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.toUpperCase() !== 'ALL'; });
  36 + locations = locations.trim().split(/[\s,]+/).map((el) => { return el && el.toUpperCase() !== 'ALL'; });
37 37 }
38 38  
39 39 const locationsCount = locations.length;