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

Commit 3b49d4b

Browse files
committed
fix: handle dag-cbor nodes in trail
1 parent 4159b90 commit 3b49d4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/utils/to-trail.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const toTrail = async (context, path) => {
1313
name: fsEntry.name,
1414
cid: fsEntry.cid,
1515
size: fsEntry.node.size,
16-
type: fsEntry.unixfs.type
16+
type: fsEntry.unixfs ? fsEntry.unixfs.type : undefined
1717
})
1818
}
1919

0 commit comments

Comments
 (0)