fix: correct logic for edit mode check
Reversed the condition checking for edit mode to ensure proper functionality. Previously, the code assumed edit mode when it wasn't, causing unintended behavior. This fix addresses incorrect section handling when the inplace editable class is present.
This commit is contained in:
parent
8c1e8c49eb
commit
6ff596c5e1
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@
|
|||
|
||||
const editMode = $(".inplaceeditable").length > 0;
|
||||
|
||||
if (editMode) {
|
||||
if (!editMode) {
|
||||
var sections = $('.course-section');
|
||||
var found = false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue