Commit e5065a9b61f2a6adc21a9cd5bfe5d18b4e9ff18e
1 parent
c75a88136f
Exists in
master
MODEM-CHOOSER: bugfix
Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff
lib/modem-chooser.js
... | ... | @@ -9,7 +9,10 @@ function filterOutCandidates(candidates) { |
9 | 9 | return []; |
10 | 10 | } |
11 | 11 | |
12 | + if (!candidates.length) return []; | |
13 | + | |
12 | 14 | return candidates.filter((item) => { |
15 | + if (typeof item !== 'string') return false; | |
13 | 16 | if (item.indexOf('#') >= 0) return false; |
14 | 17 | |
15 | 18 | const modem = modems.get('by_imsi', item); |