Fixed not setting progress when it is undefined.

HFP-9
pull/7/head
thomasmars 2016-10-04 11:59:26 +02:00
parent 751ee5f597
commit 55d66eb469
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ H5P.QuestionSet = function (options, contentId, contentData) {
var renderSolutions = false; var renderSolutions = false;
var showingSolutions = false; var showingSolutions = false;
contentData = contentData || {}; contentData = contentData || {};
if (contentData.previousState) { if (contentData.previousState && contentData.previousState.progress) {
currentQuestion = contentData.previousState.progress; currentQuestion = contentData.previousState.progress;
} }