git ssb

7+

dinoworm 🐛 / patchcore



Commit 4a05454ef5f0d95174018a6cc1f8000b1f11a90e

rollup: whoops, check if value exist before trying to unbox

Matt McKegg committed on 6/21/2017, 1:09:46 AM
Parent: 10e29232507d7fe07c572a0052f8c19772fbec30

Files changed

feed/pull/rollup.jschanged
feed/pull/rollup.jsView
@@ -30,9 +30,9 @@
3030 // scoped
3131 function Lookup () {
3232 return pull.asyncMap((key, cb) => {
3333 api.sbot.async.get(key, (_, value) => {
34- if (typeof value.content === 'string') {
34 + if (value && typeof value.content === 'string') {
3535 value = api.message.sync.unbox(value)
3636 }
3737 cb(null, {key, value})
3838 })

Built with git-ssb-web