File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,9 @@ export default function getPageLevelProgressItemsJSON(parentModel) {
16
16
if ( ! isInAPage && ! isDescendantContentObject ) return false ;
17
17
if ( isInAPage && ! isDescendantCurrentPage && ! isDescendantContentObject ) return false ;
18
18
const descendantParentModel = descendant . getParent ( ) ;
19
+ const isParentModelShown = Boolean ( descendantParentModel . get ( '_pageLevelProgress' ) ?. _isEnabled ) ;
19
20
const isChildOfModel = ( descendantParentModel === model ) ;
20
- if ( isDescendantContentObject && ! isChildOfModel ) return false ;
21
+ if ( isDescendantContentObject && isParentModelShown && ! isChildOfModel ) return false ;
21
22
return ( descendant . get ( '_isAvailable' ) === true ) ;
22
23
} ) ;
23
24
const availableItems = completionCalculations . filterAvailableChildren ( currentPageItems ) ;
You can’t perform that action at this time.
0 commit comments