Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
fix: handle dag-cbor nodes in trail
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Jun 12, 2019
1 parent 4159b90 commit 3b49d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/utils/to-trail.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const toTrail = async (context, path) => {
name: fsEntry.name,
cid: fsEntry.cid,
size: fsEntry.node.size,
type: fsEntry.unixfs.type
type: fsEntry.unixfs ? fsEntry.unixfs.type : undefined
})
}

Expand Down

0 comments on commit 3b49d4b

Please sign in to comment.