Skip to content

Commit

Permalink
fixed question display in adaptivity element
Browse files Browse the repository at this point in the history
  • Loading branch information
mountler committed Nov 16, 2023
1 parent d9747a4 commit 95e1c32
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ export default class AdaptivityElementController
await CoreDIContainer.get<IDisplayLearningElementUseCase>(
USECASE_TYPES.IDisplayLearningElementUseCase
).executeAsync(selectedHint.hintAction.idData);
this.viewModel.currentQuestion.Value = associatedQuestion;

if (this.viewModel.selectedHint.Value) {
this.viewModel.currentQuestion.Value = associatedQuestion;
} else {
this.viewModel.currentQuestion.Value = null;
}
} else if (
selectedHint.hintAction.hintActionType ===
AdaptivityElementActionTypes.ContentAction &&
Expand Down

0 comments on commit 95e1c32

Please sign in to comment.