diff --git a/js/adapt-contrib-pageLevelProgress.js b/js/adapt-contrib-pageLevelProgress.js index 24b1203..0c5e43d 100644 --- a/js/adapt-contrib-pageLevelProgress.js +++ b/js/adapt-contrib-pageLevelProgress.js @@ -65,6 +65,9 @@ class PageLevelProgress extends Backbone.Controller { if (!location._currentId) return; const currentModel = data.findById(location._currentId); + + if (!currentModel) return; + const completionState = { currentLocation: completionCalculations.calculatePercentageComplete(currentModel), course: completionCalculations.calculatePercentageComplete(Adapt.course)