Skip to content

Commit

Permalink
fix: error while loading iframe on mfe Unit Outline
Browse files Browse the repository at this point in the history
  • Loading branch information
rpenido committed Nov 12, 2024
1 parent d4f3c37 commit bb25afa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cms/static/js/views/pages/container_subviews.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,13 @@ function($, _, gettext, BaseView, ViewUtils, XBlockViewUtils, MoveXBlockUtils, H
},

renderTagElements: function(tags, depth, parentId) {
/* This function updates the tags in the sidebar of the legacy Unit Outline Page.
* It is not used in the mfe version of the Unit Outline. */
const parentElement = document.querySelector(`.content-tags-${parentId}`);
if (!parentElement) return;

const tagListElement = this;
tags.forEach(function(tag) {
const parentElement = document.querySelector(`.content-tags-${parentId}`);
var tagContentElement = document.createElement('div'),
tagValueElement = document.createElement('span');

Expand Down

0 comments on commit bb25afa

Please sign in to comment.