diff --git a/src/structs/Item.js b/src/structs/Item.js index 95acec56..41f44b96 100644 --- a/src/structs/Item.js +++ b/src/structs/Item.js @@ -785,7 +785,7 @@ export const readItem = (decoder, id, info, doc) => { return new Item( id, null, origin, null, rightOrigin, - canCopyParentInfo && !hasParentYKey ? readID(decoder) : (parentYKey ? doc.get(parentYKey) : null), // parent + canCopyParentInfo && !hasParentYKey ? readID(decoder) : (parentYKey !== null ? doc.get(parentYKey) : null), // parent canCopyParentInfo && (info & binary.BIT6) === binary.BIT6 ? decoding.readVarString(decoder) : null, // parentSub /** @type {AbstractContent} */ (readItemContent(decoder, info)) // item content )