Skip to content

Commit

Permalink
issue/2799 Removed redundant behaviour (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster authored Apr 28, 2022
1 parent 61bcf4a commit 218b83c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/adapt-contrib-assessmentResults.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Adapt from 'core/js/adapt';
import components from 'core/js/components';
import AssessmentResultsModel from './assessmentResultsModel';
import AssessmentResultsView from './assessmentResultsView';

export default Adapt.register('assessmentResults', {
export default components.register('assessmentResults', {
model: AssessmentResultsModel,
view: AssessmentResultsView
});
3 changes: 2 additions & 1 deletion js/assessmentResultsView.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Adapt from 'core/js/adapt';
import router from 'core/js/router';
import ComponentView from 'core/js/views/componentView';

class AssessmentResultsView extends ComponentView {
Expand Down Expand Up @@ -38,7 +39,7 @@ class AssessmentResultsView extends ComponentView {
if (!wasReset) return;

if (this.model.get('_retry')._routeToAssessment !== true) return;
Adapt.navigateToElement(`.${state.articleId}`);
router.navigateToElement(`.${state.articleId}`);
});
}

Expand Down

0 comments on commit 218b83c

Please sign in to comment.