diff --git a/src/core/utils/to-trail.js b/src/core/utils/to-trail.js index 92632db..7a42d8a 100644 --- a/src/core/utils/to-trail.js +++ b/src/core/utils/to-trail.js @@ -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 }) }