diff --git a/js/getPageLevelProgressItems.js b/js/getPageLevelProgressItems.js index a53da17..761c8e1 100644 --- a/js/getPageLevelProgressItems.js +++ b/js/getPageLevelProgressItems.js @@ -15,6 +15,9 @@ export default function getPageLevelProgressItemsJSON(parentModel) { const isDescendantCurrentPage = (model === parentModel); if (!isInAPage && !isDescendantContentObject) return false; if (isInAPage && !isDescendantCurrentPage && !isDescendantContentObject) return false; + const descendantParentModel = descendant.getParent(); + const isChildOfModel = (descendantParentModel === model); + if (isDescendantContentObject && !isChildOfModel) return false; return (descendant.get('_isAvailable') === true); }); const availableItems = completionCalculations.filterAvailableChildren(currentPageItems);