Skip to content

Commit

Permalink
chore: Test to fix javascript error
Browse files Browse the repository at this point in the history
chore: Test to fix javascript error

chore: Test to fix javascript error

chore: Test to fix javascript error
  • Loading branch information
ChrisChV committed Jan 23, 2024
1 parent 1544a45 commit 61bb176
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion cms/djangoapps/contentstore/views/preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
from xmodule.x_module import AUTHOR_VIEW, PREVIEW_VIEWS, STUDENT_VIEW, XModuleMixin
from cms.djangoapps.xblock_config.models import StudioConfig
from cms.djangoapps.contentstore.toggles import individualize_anonymous_user_id
from cms.djangoapps.contentstore.utils import get_course_authoring_url
from cms.lib.xblock.field_data import CmsFieldData
from common.djangoapps.static_replace.services import ReplaceURLService
from common.djangoapps.static_replace.wrapper import replace_urls_wrapper
Expand Down
6 changes: 4 additions & 2 deletions cms/static/js/views/course_outline.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,17 @@ function(
this.makeContentDraggable(this.el);
// Show/hide the paste button
this.initializePasteButton(this.el);
//this.renderTagCount();
this.renderTagCount();
return renderResult;
},

renderTagCount: function() {
const contentId = this.model.get('id');
const tagCountsByUnit = this.model.get('tag_counts_by_unit')
const tagsCount = tagCountsByUnit !== undefined ? tagCountsByUnit[contentId] : 0
var countModel = new TagCountModel({
content_id: contentId,
tags_count: this.model.get('tag_counts_by_unit')[contentId],
tags_count: tagsCount,
course_authoring_url: this.model.get('course_authoring_url'),
}, {parse: true});
var tagCountView = new TagCountView({el: this.$('.tag-count'), model: countModel});
Expand Down

0 comments on commit 61bb176

Please sign in to comment.