Skip to content

Commit

Permalink
context is never passed here
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Sep 11, 2024
1 parent 42abe34 commit 305c0b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content_editor/static/content_editor/content_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@
arg.addClass("fs-draggable")
}

function findInlinesInOrder(context) {
const inlines = (context || orderMachine).find(
function findInlinesInOrder() {
const inlines = orderMachine.find(
`.inline-related:not(.empty-form)[data-region="${ContentEditor.currentRegion}`,
)
inlines.sort((a, b) => a.style.order - b.style.order)
Expand All @@ -283,11 +283,11 @@
let sectionsMap = new Map()
let childrenMap = null

function updateSections(context) {
function updateSections() {
/* Bail out early if we wouldn't do nothing anyway */
if (!ContentEditor.hasSections) return

const inlines = findInlinesInOrder(context)
const inlines = findInlinesInOrder()

let indent = 0
let nextIndent
Expand Down

0 comments on commit 305c0b9

Please sign in to comment.