Commit 4a05454ef5f0d95174018a6cc1f8000b1f11a90e
rollup: whoops, check if value exist before trying to unbox
Matt McKegg committed on 6/21/2017, 1:09:46 AMParent: 10e29232507d7fe07c572a0052f8c19772fbec30
Files changed
feed/pull/rollup.js | changed |
feed/pull/rollup.js | ||
---|---|---|
@@ -30,9 +30,9 @@ | ||
30 | 30 … | // scoped |
31 | 31 … | function Lookup () { |
32 | 32 … | return pull.asyncMap((key, cb) => { |
33 | 33 … | api.sbot.async.get(key, (_, value) => { |
34 | - if (typeof value.content === 'string') { | |
34 … | + if (value && typeof value.content === 'string') { | |
35 | 35 … | value = api.message.sync.unbox(value) |
36 | 36 … | } |
37 | 37 … | cb(null, {key, value}) |
38 | 38 … | }) |
Built with git-ssb-web