Skip to content

Commit

Permalink
Fix for #235
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-steele committed Jul 12, 2024
1 parent 9c6ec15 commit d821c18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/adapt-contrib-pageLevelProgress.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d821c18

Please sign in to comment.