···372372 /*
373373 * Tree-view only.
374374 *
375375- * If there's an upcoming parent read more, this branch is part of the
376376- * last branch of the sub-tree, and the item itself is the last child,
377377- * insert the parent "read more".
375375+ * If there's an upcoming parent read more, this branch is part of a
376376+ * branch of the sub-tree that is deeper than the
377377+ * `upcomingParentReadMore`, and the item following the current item
378378+ * is either undefined or less-or-equal-to the depth of the
379379+ * `upcomingParentReadMore`, then we know it's time to drop in the
380380+ * parent read more.
378381 */
379382 if (
380383 view === 'tree' &&
381384 metadata.upcomingParentReadMore &&
382382- metadata.isPartOfLastBranchFromDepth ===
385385+ metadata.isPartOfLastBranchFromDepth &&
386386+ metadata.isPartOfLastBranchFromDepth >=
383387 metadata.upcomingParentReadMore.depth &&
384384- metadata.isLastChild
388388+ (metadata.nextItemDepth === undefined ||
389389+ metadata.nextItemDepth <= metadata.upcomingParentReadMore.depth)
385390 ) {
386391 subset.splice(
387392 i + 1,