Skip to content

Commit

Permalink
chore: satisfy XSS linter
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald committed Oct 23, 2024
1 parent 75d38be commit 6234fa2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cms/static/js/views/pages/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,8 @@ function($, _, Backbone, gettext, BasePage,
// Create a placeholder that will become the new block(s)
const $insertSpot = xblockElement.find('.insert-new-lib-blocks-here');
doneAddingBlock = (addResult) => {
const placeholderElement = $(this.createPlaceholderElement()).insertBefore($insertSpot);
const $placeholderEl = $(this.createPlaceholderElement());
const placeholderElement = $placeholderEl.insertBefore($insertSpot);
placeholderElement.data('locator', addResult.locator);
return this.refreshXBlock(placeholderElement, true);
};
Expand Down

0 comments on commit 6234fa2

Please sign in to comment.