Commit adba0300f9dcfbcc6ea2185ab37761491139d9cd
fix channels
Dominic Tarr committed on 8/1/2016, 7:13:23 AMParent: b5a110f05db20715d91f8c4487810adc05a33d09
Files changed
modules/search-box.js | changed |
modules/search-box.js | ||
---|---|---|
@@ -52,10 +52,10 @@ | ||
52 | 52 | if(/^#\w/.test(word)) |
53 | 53 | cb(null, channels.filter(function (chan) { |
54 | 54 | return ('#'+chan.name).substring(0, word.length) === word |
55 | 55 | }) |
56 | - .map(function (e) { | |
57 | - var name = '#'+e.name | |
56 | + .map(function (chan) { | |
57 | + var name = '#'+chan.name | |
58 | 58 | return { |
59 | 59 | title: name, |
60 | 60 | value: name, |
61 | 61 | subtitle: chan.posts |
Built with git-ssb-web